diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-01-03 08:28:12 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-01-03 08:28:12 +0000 |
commit | 3a7458f9472432ef12c43008414925fd1ce8ea0c (patch) | |
tree | 185f6140d3895e4d5304e4ef3f5ce4d7a34a7e82 /source/smbd/process.c | |
parent | 96e9fa5f224966531fa8f9cf18cbc4bbb2fe60ed (diff) | |
download | samba-3a7458f9472432ef12c43008414925fd1ce8ea0c.tar.gz samba-3a7458f9472432ef12c43008414925fd1ce8ea0c.tar.xz samba-3a7458f9472432ef12c43008414925fd1ce8ea0c.zip |
Merge from HEAD - make Samba compile with -Wwrite-strings without additional
warnings. (Adds a lot of const).
Andrew Bartlett
Diffstat (limited to 'source/smbd/process.c')
-rw-r--r-- | source/smbd/process.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/process.c b/source/smbd/process.c index 923b20ad66b..7421c16b40d 100644 --- a/source/smbd/process.c +++ b/source/smbd/process.c @@ -339,7 +339,7 @@ force write permissions on print services. functions. Any message that has a NULL function is unimplemented - please feel free to contribute implementations! */ -const static struct smb_message_struct +static const struct smb_message_struct { const char *name; int (*fn)(connection_struct *conn, char *, char *, int, int); @@ -890,7 +890,7 @@ return a string containing the function name of a SMB command ****************************************************************************/ const char *smb_fn_name(int type) { - static char *unknown_name = "SMBunknown"; + const char *unknown_name = "SMBunknown"; if (smb_messages[type].name == NULL) return(unknown_name); |