From a18c0b2b1461db73b233dc047ea8c4796fad4839 Mon Sep 17 00:00:00 2001 From: Themaister Date: Thu, 5 Jan 2012 21:43:55 +0100 Subject: [PATCH] Use const. --- ssnes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssnes.c b/ssnes.c index eeab85aea0..6dff9ff4ee 100644 --- a/ssnes.c +++ b/ssnes.c @@ -605,7 +605,7 @@ static void parse_input(int argc, char *argv[]) int val = 0; - struct option opts[] = { + const struct option opts[] = { #ifdef HAVE_DYNAMIC { "libsnes", 1, NULL, 'L' }, #endif @@ -673,7 +673,7 @@ static void parse_input(int argc, char *argv[]) #define NETPLAY_ARG #endif - char optstring[] = "hs:fvS:m:p4jJg:b:B:Y:Z:P:R:M:U:DN:X:" NETPLAY_ARG DYNAMIC_ARG FFMPEG_RECORD_ARG CONFIG_FILE_ARG; + const char *optstring = "hs:fvS:m:p4jJg:b:B:Y:Z:P:R:M:U:DN:X:" NETPLAY_ARG DYNAMIC_ARG FFMPEG_RECORD_ARG CONFIG_FILE_ARG; for (;;) { val = 0;