bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 5/9] Fix a compiler warning in lib/buildcmd.c


From: James Youngman
Subject: [PATCH 5/9] Fix a compiler warning in lib/buildcmd.c
Date: Sat, 4 Jun 2011 01:21:49 +0100

* 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  <address@hidden>
 
+       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

[Prev in Thread] Current Thread [Next in Thread]