summaryrefslogtreecommitdiff
path: root/lib/libcompat/regexp/regsub.c
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-12-14 07:01:30 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-12-14 07:01:30 +0000
commit7196c98e87e63255bcea0194a88a1798dcc1fcd1 (patch)
treefb423ee1d3ff156918f4d0810c2f4793e058cbd6 /lib/libcompat/regexp/regsub.c
parentb94f63a5c1a2254594572cfc6fd890258ddb5361 (diff)
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 == '&')