summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2005-11-14 03:11:25 +0000
committerrodrigc <rodrigc@FreeBSD.org>2005-11-14 03:11:25 +0000
commit2cc617682f21f1705b2963675573df22ccf099c2 (patch)
tree0feb23b221cb86f984b8a6da4d1f5d23d70b56aa
parentb093df020c029094eeedd740f4e7e6e8b27acdde (diff)
downloadFreeBSD-src-2cc617682f21f1705b2963675573df22ccf099c2.zip
FreeBSD-src-2cc617682f21f1705b2963675573df22ccf099c2.tar.gz
Eliminate build breakage due to warnings about const.
-rw-r--r--usr.bin/rpcgen/rpc_main.c6
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);
}
/*
OpenPOWER on IntegriCloud