summaryrefslogtreecommitdiffstats
path: root/source/smbd/negprot.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-01-03 08:28:12 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-01-03 08:28:12 +0000
commit3a7458f9472432ef12c43008414925fd1ce8ea0c (patch)
tree185f6140d3895e4d5304e4ef3f5ce4d7a34a7e82 /source/smbd/negprot.c
parent96e9fa5f224966531fa8f9cf18cbc4bbb2fe60ed (diff)
downloadsamba-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/negprot.c')
-rw-r--r--source/smbd/negprot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/smbd/negprot.c b/source/smbd/negprot.c
index b91c0c0866b..c8f023514e6 100644
--- a/source/smbd/negprot.c
+++ b/source/smbd/negprot.c
@@ -377,9 +377,9 @@ protocol [LANMAN2.1]
#define ARCH_ALL 0x3F
/* List of supported protocols, most desired first */
-static struct {
- char *proto_name;
- char *short_name;
+static const struct {
+ const char *proto_name;
+ const char *short_name;
int (*proto_reply_fn)(char *, char *);
int protocol_level;
} supported_protocols[] = {