diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2005-11-14 03:11:25 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2005-11-14 03:11:25 +0000 |
commit | 2cc617682f21f1705b2963675573df22ccf099c2 (patch) | |
tree | 0feb23b221cb86f984b8a6da4d1f5d23d70b56aa /usr.bin | |
parent | b093df020c029094eeedd740f4e7e6e8b27acdde (diff) | |
download | FreeBSD-src-2cc617682f21f1705b2963675573df22ccf099c2.zip FreeBSD-src-2cc617682f21f1705b2963675573df22ccf099c2.tar.gz |
Eliminate build breakage due to warnings about const.
Diffstat (limited to 'usr.bin')
-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 5b35f54..eb74c52 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); } /* |