aboutsummaryrefslogtreecommitdiff
path: root/libiberty/ChangeLog
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-01-03 01:30:32 -0500
committerMike Frysinger <vapier@gentoo.org>2016-01-05 15:25:13 -0500
commitb36c1ccb1feb678f7279b4a8d66c0125d4295078 (patch)
tree3739015b75cd944eecae804145791ad650581706 /libiberty/ChangeLog
parent203217665139943a4f0d1797b9a5f913b3acf184 (diff)
downloadgdb-b36c1ccb1feb678f7279b4a8d66c0125d4295078.zip
gdb-b36c1ccb1feb678f7279b4a8d66c0125d4295078.tar.gz
gdb-b36c1ccb1feb678f7279b4a8d66c0125d4295078.tar.bz2
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.
Diffstat (limited to 'libiberty/ChangeLog')
-rw-r--r--libiberty/ChangeLog6
1 files changed, 6 insertions, 0 deletions
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 <vapier@gentoo.org>
+ * argv.c (dupargv): Change arg to char * const *. Update comment.
+ (writeargv, countargv): Likewise.
+ * functions.texi (dupargv, writeargv, countargv): Likewise.
+
+2016-01-05 Mike Frysinger <vapier@gentoo.org>
+
* argv.c (dupargv): Replace strlen/xmalloc/strcpy with xstrdup.
2015-12-28 Patrick Palka <ppalka@gcc.gnu.org>