[Top][All Lists]
[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
- [PATCH 1/9] Don't display a separate gnulib version., James Youngman, 2011/06/03
- [PATCH 2/9] Fix some compiler warnings in findutils-version.c., James Youngman, 2011/06/03
- [PATCH 4/9] Fix compiler warnings in lib/fdleak.c, James Youngman, 2011/06/03
- [PATCH 5/9] Fix a compiler warning in lib/buildcmd.c,
James Youngman <=
- [PATCH 9/9] Compiler warning fixes in find/pred.c., James Youngman, 2011/06/03
- [PATCH 7/9] Avoid code redundancy in lib/buildcmd.c., James Youngman, 2011/06/03
- [PATCH 8/9] Eliminate some compiler warnings in parser.c, James Youngman, 2011/06/03
- [PATCH 6/9] Eliminate some compiler warnings in find/parser.c., James Youngman, 2011/06/03
- [PATCH 3/9] Fix several small compiler warnings., James Youngman, 2011/06/03