(backup_types): Declare const.
authorJim Meyering <jim@meyering.net>
Sat, 28 Sep 1996 18:17:00 +0000 (18:17 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 28 Sep 1996 18:17:00 +0000 (18:17 +0000)
(backup_args): Likewise.

lib/getversion.c

index 4ae705a..8d26abe 100644 (file)
 /* 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
 };