diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2005-11-14 03:11:25 +0000 |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2005-11-14 03:11:25 +0000 |
commit | 075775c9e49fdb9f11455890fa6f32eb51c9c945 (patch) | |
tree | 0feb23b221cb86f984b8a6da4d1f5d23d70b56aa /usr.bin/rpcgen | |
parent | 13f8bb71432d6c9ec21f0ad27234a0e826e8bbd6 (diff) | |
download | src-075775c9e49fdb9f11455890fa6f32eb51c9c945.tar.gz src-075775c9e49fdb9f11455890fa6f32eb51c9c945.zip |
Eliminate build breakage due to warnings about const.
Notes
Notes:
svn path=/head/; revision=152407
Diffstat (limited to 'usr.bin/rpcgen')
-rw-r--r-- | usr.bin/rpcgen/rpc_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rpcgen/rpc_main.c b/usr.bin/rpcgen/rpc_main.c index 5b35f54a6a8f..eb74c5243e3b 100644 --- a/usr.bin/rpcgen/rpc_main.c +++ b/usr.bin/rpcgen/rpc_main.c @@ -111,7 +111,7 @@ static void checkfiles(const char *, const char *); #define ARGLISTLEN 20 #define FIXEDARGS 2 -static const char *arglist[ARGLISTLEN]; +static char *arglist[ARGLISTLEN]; static int argcount = FIXEDARGS; @@ -931,7 +931,7 @@ addarg(const char *cp) crash(); /*NOTREACHED*/ } - arglist[argcount++] = cp; + arglist[argcount++] = strdup(cp); } @@ -943,7 +943,7 @@ putarg(int place, const char *cp) crash(); /*NOTREACHED*/ } - arglist[place] = cp; + arglist[place] = strdup(cp); } /* |