diff options
Diffstat (limited to 'usr.bin/patch/inp.c')
-rw-r--r-- | usr.bin/patch/inp.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/usr.bin/patch/inp.c b/usr.bin/patch/inp.c index b434a88..b1c0312 100644 --- a/usr.bin/patch/inp.c +++ b/usr.bin/patch/inp.c @@ -30,9 +30,6 @@ * behaviour */ -#include <sys/cdefs.h> -__RCSID("$NetBSD: inp.c,v 1.26 2018/06/18 18:33:31 christos Exp $"); - #include <sys/types.h> #include <sys/file.h> #include <sys/stat.h> @@ -230,8 +227,8 @@ plan_a(const char *filename) strerror(errno)); } (void)dup2(devnull, STDOUT_FILENO); - argp[0] = __UNCONST(RCSDIFF); - argp[1] = __UNCONST(filename); + argp[0] = RCSDIFF; + argp[1] = filename; execv(RCSDIFF, argp); exit(127); } @@ -251,9 +248,9 @@ plan_a(const char *filename) case -1: fatal("can't fork: %s\n", strerror(errno)); case 0: - argp[0] = __UNCONST(CHECKOUT); - argp[1] = __UNCONST("-l"); - argp[2] = __UNCONST(filename); + argp[0] = CHECKOUT; + argp[1] = "-l"; + argp[2] = filename; execv(CHECKOUT, argp); exit(127); } |