summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-09-28 18:17:00 +0000
committerJim Meyering <jim@meyering.net>1996-09-28 18:17:00 +0000
commitea3702aa6dedeae6cc7f781e831422b2c62276ec (patch)
tree2abd06fd969a7a801414ef686338bcea50476fd0
parent59b92967420fa355b30829141d487bcd7809853a (diff)
downloadcoreutils-ea3702aa6dedeae6cc7f781e831422b2c62276ec.tar.xz
(backup_types): Declare const.
(backup_args): Likewise.
-rw-r--r--lib/getversion.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/getversion.c b/lib/getversion.c
index 4ae705a55..8d26abe85 100644
--- a/lib/getversion.c
+++ b/lib/getversion.c
@@ -18,13 +18,13 @@
/* Written by David MacKenzie <djm@gnu.ai.mit.edu> */
#ifdef HAVE_CONFIG_H
-#include <config.h>
+# include <config.h>
#endif
#include "backupfile.h"
#ifdef STDC_HEADERS
-#include <stdlib.h>
+# include <stdlib.h>
#endif
int argmatch ();
@@ -32,12 +32,12 @@ void invalid_arg ();
extern char *program_name;
-static char *backup_args[] =
+static const char *const backup_args[] =
{
"never", "simple", "nil", "existing", "t", "numbered", 0
};
-static enum backup_type backup_types[] =
+static const enum backup_type backup_types[] =
{
simple, simple, numbered_existing, numbered_existing, numbered, numbered
};