Permalink
Browse files

Use "const" in declaration of these strings.

  • Loading branch information...
1 parent 0dee83e commit 379366b2b1e6b5fb688491d3d0ec4c67a946a06b @bruceg committed Dec 2, 2004
Showing with 4 additions and 4 deletions.
  1. +1 −1 auto-str.c
  2. +1 −1 auto_bin.h
  3. +1 −1 auto_cron.h
  4. +1 −1 auto_qmail.h
View
@@ -25,7 +25,7 @@ char **argv;
value = argv[2];
if (!value) _exit(100);
- puts("char ");
+ puts("const char ");
puts(name);
puts("[] = \"\\\n");
View
@@ -1,6 +1,6 @@
#ifndef AUTO_BIN_H
#define AUTO_BIN_H
-extern char auto_bin[];
+extern const char auto_bin[];
#endif
View
@@ -1,6 +1,6 @@
#ifndef AUTO_CRON_H
#define AUTO_CRON_H
-extern char auto_cron[];
+extern const char auto_cron[];
#endif
View
@@ -1,6 +1,6 @@
#ifndef AUTO_QMAIL_H
#define AUTO_QMAIL_H
-extern char auto_qmail[];
+extern const char auto_qmail[];
#endif

0 comments on commit 379366b

Please sign in to comment.