diff options
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/cliconnect.c | 2 | ||||
-rw-r--r-- | source3/libsmb/clierror.c | 2 | ||||
-rw-r--r-- | source3/libsmb/nmblib.c | 6 | ||||
-rw-r--r-- | source3/libsmb/nterr.c | 2 | ||||
-rw-r--r-- | source3/libsmb/smberr.c | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 680f30900e..aae21cb6d9 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -24,7 +24,7 @@ #include "includes.h" -static struct { +static const struct { int prot; const char *name; } diff --git a/source3/libsmb/clierror.c b/source3/libsmb/clierror.c index bcecc92d77..fe793d4b0e 100644 --- a/source3/libsmb/clierror.c +++ b/source3/libsmb/clierror.c @@ -27,7 +27,7 @@ RAP error codes - a small start but will be extended. *******************************************************/ -static struct +static const struct { int err; char *message; diff --git a/source3/libsmb/nmblib.c b/source3/libsmb/nmblib.c index d7bd7b49a0..dc39924818 100644 --- a/source3/libsmb/nmblib.c +++ b/source3/libsmb/nmblib.c @@ -25,7 +25,7 @@ int num_good_sends = 0; int num_good_receives = 0; -static struct opcode_names { +static const struct opcode_names { char *nmb_opcode_name; int opcode; } nmb_header_opcode_names[] = { @@ -42,9 +42,9 @@ static struct opcode_names { /**************************************************************************** * Lookup a nmb opcode name. ****************************************************************************/ -static char *lookup_opcode_name( int opcode ) +static const char *lookup_opcode_name( int opcode ) { - struct opcode_names *op_namep; + const struct opcode_names *op_namep; int i; for(i = 0; nmb_header_opcode_names[i].nmb_opcode_name != 0; i++) { diff --git a/source3/libsmb/nterr.c b/source3/libsmb/nterr.c index 1f61e648c2..ab0a425633 100644 --- a/source3/libsmb/nterr.c +++ b/source3/libsmb/nterr.c @@ -23,7 +23,7 @@ #include "includes.h" -typedef struct +typedef const struct { char *nt_errstr; NTSTATUS nt_errcode; diff --git a/source3/libsmb/smberr.c b/source3/libsmb/smberr.c index 0b59b5b1a5..66256d2385 100644 --- a/source3/libsmb/smberr.c +++ b/source3/libsmb/smberr.c @@ -25,7 +25,7 @@ /* error code stuff - put together by Merik Karman merik@blackadder.dsh.oz.au */ -typedef struct +typedef const struct { char *name; int code; @@ -125,7 +125,7 @@ err_code_struct hard_msgs[] = { {NULL,-1,NULL}}; -struct +const struct { int code; char *class; |