summaryrefslogtreecommitdiffstats
path: root/lib/libcompat/regexp/regsub.c
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1996-12-14 07:01:27 +0000
committertholo <tholo@openbsd.org>1996-12-14 07:01:27 +0000
commit1231f36c6ff3865672ae9c9917248362a4081d7f (patch)
treecaf785db4ece05cb4f0133cfdd83f67c7bd2f26e /lib/libcompat/regexp/regsub.c
parentlean up lint & compile warnings (diff)
downloadwireguard-openbsd-1231f36c6ff3865672ae9c9917248362a4081d7f.tar.xz
wireguard-openbsd-1231f36c6ff3865672ae9c9917248362a4081d7f.zip
Clean up lint & compile warnings
Diffstat (limited to 'lib/libcompat/regexp/regsub.c')
-rw-r--r--lib/libcompat/regexp/regsub.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libcompat/regexp/regsub.c b/lib/libcompat/regexp/regsub.c
index 9bd32b00f7f..ab457a2c17b 100644
--- a/lib/libcompat/regexp/regsub.c
+++ b/lib/libcompat/regexp/regsub.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: regsub.c,v 1.2 1996/07/24 05:39:12 downsj Exp $ */
+/* $OpenBSD: regsub.c,v 1.3 1996/12/14 07:01:29 tholo Exp $ */
/*
* regsub
@@ -22,7 +22,7 @@
*/
#ifndef lint
-static char *rcsid = "$OpenBSD: regsub.c,v 1.2 1996/07/24 05:39:12 downsj Exp $";
+static char *rcsid = "$OpenBSD: regsub.c,v 1.3 1996/12/14 07:01:29 tholo Exp $";
#endif /* not lint */
#include <regexp.h>
@@ -45,11 +45,11 @@ const regexp *prog;
const char *source;
char *dest;
{
- register char *src;
+ register const char *src;
+ register size_t len;
register char *dst;
register char c;
register int no;
- register int len;
if (prog == NULL || source == NULL || dest == NULL) {
v8_regerror("NULL parm to regsub");
@@ -60,7 +60,7 @@ char *dest;
return;
}
- src = (char *)source;
+ src = source;
dst = dest;
while ((c = *src++) != '\0') {
if (c == '&')