From b36c1ccb1feb678f7279b4a8d66c0125d4295078 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 3 Jan 2016 01:30:32 -0500 Subject: libiberty: {count,dup,write}argv: constify argv input slightly Would be more useful if we could use "const char * const *", but there's a long standing bug where gcc warns about incompatible pointers when you try to pass in "char **". We can at least constify the array itself as gcc will not warn in that case. --- libiberty/ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libiberty/ChangeLog') diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index ba1e0a5..77c1ecb 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,5 +1,11 @@ 2016-01-05 Mike Frysinger + * argv.c (dupargv): Change arg to char * const *. Update comment. + (writeargv, countargv): Likewise. + * functions.texi (dupargv, writeargv, countargv): Likewise. + +2016-01-05 Mike Frysinger + * argv.c (dupargv): Replace strlen/xmalloc/strcpy with xstrdup. 2015-12-28 Patrick Palka -- cgit v1.1