From c82bcef16d386c846410dbe2e79f9fad619fc4ea Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Thu, 9 Sep 2010 21:29:21 +0200 Subject: s4:client/cifsdd.c - restore Solaris cc compatibility "static const struct"s need to be global in order to work with Solaris cc. --- source4/client/cifsdd.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'source4/client') diff --git a/source4/client/cifsdd.c b/source4/client/cifsdd.c index 1cd0b64ca6..adf2d72af2 100644 --- a/source4/client/cifsdd.c +++ b/source4/client/cifsdd.c @@ -60,19 +60,18 @@ static void dd_handle_signal(int sig) /* Argument handling. */ /* ------------------------------------------------------------------------- */ +static const struct { + enum argtype arg_type; + const char * arg_name; +} names [] = { + { ARG_NUMERIC, "COUNT" }, + { ARG_SIZE, "SIZE" }, + { ARG_PATHNAME, "FILE" }, + { ARG_BOOL, "BOOLEAN" }, +}; + static const char * argtype_str(enum argtype arg_type) { - static const struct { - enum argtype arg_type; - const char * arg_name; - } names [] = - { - { ARG_NUMERIC, "COUNT" }, - { ARG_SIZE, "SIZE" }, - { ARG_PATHNAME, "FILE" }, - { ARG_BOOL, "BOOLEAN" }, - }; - int i; for (i = 0; i < ARRAY_SIZE(names); ++i) { -- cgit