summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-09-09 21:29:21 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-09-09 21:29:21 +0200
commitc82bcef16d386c846410dbe2e79f9fad619fc4ea (patch)
tree28800c3f049177917b9dc60bd669a3fcf5310f0d
parentad25264dd7c815449ee361d342fd3b7e74f8d0bb (diff)
downloadsamba-c82bcef16d386c846410dbe2e79f9fad619fc4ea.tar.gz
samba-c82bcef16d386c846410dbe2e79f9fad619fc4ea.tar.bz2
samba-c82bcef16d386c846410dbe2e79f9fad619fc4ea.zip
s4:client/cifsdd.c - restore Solaris cc compatibility
"static const struct"s need to be global in order to work with Solaris cc.
-rw-r--r--source4/client/cifsdd.c21
1 files changed, 10 insertions, 11 deletions
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) {