X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fgetversion.c;h=4c4ac4cf8509467144736714e63aa95ddf6dec2e;hb=12cc8b970806cca3260e499c74d2f001df705a60;hp=eca294599e4f374103751838977272c3ce56723d;hpb=d87c39464604e74f580c7fae835be31a4c125c36;p=gnulib.git diff --git a/lib/getversion.c b/lib/getversion.c index eca294599..4c4ac4cf8 100644 --- a/lib/getversion.c +++ b/lib/getversion.c @@ -12,15 +12,19 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Written by David MacKenzie */ +#if HAVE_CONFIG_H +# include +#endif + #include "backupfile.h" -#ifdef STDC_HEADERS -#include +#if STDC_HEADERS +# include #endif int argmatch (); @@ -28,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 };