summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-12-12 18:53:49 +0100
committerVolker Lendecke <vl@samba.org>2010-12-22 16:39:14 +0100
commit444dcc59c2b0fe616c833efa75a061c46ac12274 (patch)
treef03dda5051df64e4138bc4d52a6636e831d3b4ce /source3
parent87934d8c7906887df08c5556cea3b061f7e5c893 (diff)
downloadsamba-444dcc59c2b0fe616c833efa75a061c46ac12274.tar.gz
s3: Add some const to name_mangle()
Diffstat (limited to 'source3')
-rw-r--r--source3/include/proto.h2
-rw-r--r--source3/libsmb/nmblib.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 566b3f31dfa..565f045c442 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -2786,7 +2786,7 @@ struct packet_struct *receive_dgram_packet(int fd, int t,
bool match_mailslot_name(struct packet_struct *p, const char *mailslot_name);
int matching_len_bits(unsigned char *p1, unsigned char *p2, size_t len);
void sort_query_replies(char *data, int n, struct in_addr ip);
-char *name_mangle(TALLOC_CTX *mem_ctx, char *In, char name_type);
+char *name_mangle(TALLOC_CTX *mem_ctx, const char *In, char name_type);
int name_extract(unsigned char *buf,size_t buf_len, unsigned int ofs, fstring name);
int name_len(unsigned char *s1, size_t buf_len);
diff --git a/source3/libsmb/nmblib.c b/source3/libsmb/nmblib.c
index 943cbcbe6db..e10bd7aa7bc 100644
--- a/source3/libsmb/nmblib.c
+++ b/source3/libsmb/nmblib.c
@@ -1293,7 +1293,7 @@ static int name_interpret(unsigned char *buf, size_t buf_len,
Note: <Out> must be (33 + strlen(scope) + 2) bytes long, at minimum.
****************************************************************************/
-char *name_mangle(TALLOC_CTX *mem_ctx, char *In, char name_type)
+char *name_mangle(TALLOC_CTX *mem_ctx, const char *In, char name_type)
{
int i;
int len;