aboutsummaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'options.c')
-rw-r--r--options.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/options.c b/options.c
index 2d313de..a065be8 100644
--- a/options.c
+++ b/options.c
@@ -26,8 +26,7 @@
#include <string.h>
#include <unistd.h>
-opt_t _options;
-const opt_t *options = (const opt_t*) &_options;
+const opt_t *options;
void print_usage(void)
{
@@ -36,7 +35,7 @@ void print_usage(void)
"[-z ZOOM] FILES...\n");
}
-void print_version(void)
+static void print_version(void)
{
puts("nsxiv " VERSION);
}
@@ -46,6 +45,8 @@ void parse_options(int argc, char **argv)
int n, opt;
char *end, *s;
const char *scalemodes = "dfFwh";
+ static opt_t _options;
+ options = &_options;
progname = strrchr(argv[0], '/');
progname = progname ? progname + 1 : argv[0];