commit 782aef4955baae328d01f44c8e3a05e776dfdebf
Author: Jim Meyering <meyering(a)redhat.com>
Date: Wed Apr 6 13:38:34 2011 +0200
maint: eliminate unnecessary global, cfg_file
* rest.c (cfg_file): Move globally-scoped variable into...
(main): ...here.
rest.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/rest.c b/rest.c
index 860ab1c..aa9be64 100644
--- a/rest.c
+++ b/rest.c
@@ -97,7 +97,6 @@ typedef struct {
} rule;
static unsigned short my_port = MY_PORT;
-char *cfg_file = NULL;
static const char *const (reserved_name[]) = {"_default", "_new",
"_policy", "_query", NULL};
static const char *const (reserved_attr[]) = {"_attrs", "_bucket",
"_date", "_etag", "_key", "_loc",
"_size", NULL};
@@ -2288,6 +2287,7 @@ main (int argc, char **argv)
char *stctx = NULL;
char *port_tmp;
bool autostart = false;
+ char *cfg_file = NULL;
set_program_name (argv[0]);
setlocale (LC_ALL, "");
Show replies by date