* lib/buildcmd.c: special_terminating_arg should be const.
---
 ChangeLog      |    3 +++
 lib/buildcmd.c |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index bba9198..66a7022 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2011-06-03  James Youngman  <[email protected]>
 
+       Fix a compiler warning in lib/buildcmd.c
+       * lib/buildcmd.c: special_terminating_arg should be const.
+
        Fix compiler warnings in lib/fdleak.c
        * lib/fdleak.c (visit_open_fds): Rename loop variable from i to j
        to avoid shadowing.
diff --git a/lib/buildcmd.c b/lib/buildcmd.c
index 0bc607c..c663375 100644
--- a/lib/buildcmd.c
+++ b/lib/buildcmd.c
@@ -73,7 +73,7 @@
 
 extern char **environ;
 
-static char *special_terminating_arg = "do_not_care";
+static const char *special_terminating_arg = "do_not_care";
 
 
 
-- 
1.7.2.5


Reply via email to