diff options
author | tjr <tjr@FreeBSD.org> | 2002-07-08 06:00:55 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-07-08 06:00:55 +0000 |
commit | 7cab19d5769aa273ab939702cb0d98701d5daa0b (patch) | |
tree | 80cce918e213f3028933d2c6079d8237c44b4de7 /usr.bin/sed | |
parent | ae7a40f1aa24f59932fee8f35e2061a6a5d0c706 (diff) | |
download | FreeBSD-src-7cab19d5769aa273ab939702cb0d98701d5daa0b.zip FreeBSD-src-7cab19d5769aa273ab939702cb0d98701d5daa0b.tar.gz |
Make cspace()'s second argument const. Make `escapes' in lputs() const.
Diffstat (limited to 'usr.bin/sed')
-rw-r--r-- | usr.bin/sed/extern.h | 2 | ||||
-rw-r--r-- | usr.bin/sed/process.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/sed/extern.h b/usr.bin/sed/extern.h index c908eb1..df49f7e 100644 --- a/usr.bin/sed/extern.h +++ b/usr.bin/sed/extern.h @@ -50,7 +50,7 @@ extern int rflags; /* regex flags to use */ void cfclose(struct s_command *, struct s_command *); void compile(void); -void cspace(SPACE *, char *, size_t, enum e_spflag); +void cspace(SPACE *, const char *, size_t, enum e_spflag); char *cu_fgets(char *, int, int *); int mf_fgets(SPACE *, enum e_spflag); int lastline(void); diff --git a/usr.bin/sed/process.c b/usr.bin/sed/process.c index 0b24f12..02500b3 100644 --- a/usr.bin/sed/process.c +++ b/usr.bin/sed/process.c @@ -471,7 +471,8 @@ lputs(s) char *s; { int count; - char *escapes, *p; + const char *escapes; + char *p; struct winsize win; static int termwidth = -1; @@ -601,7 +602,7 @@ regsub(sp, string, src) void cspace(sp, p, len, spflag) SPACE *sp; - char *p; + const char *p; size_t len; enum e_spflag spflag; { |