From: Volker Lendecke Date: Sun, 12 Dec 2010 17:53:49 +0000 (+0100) Subject: s3: Add some const to name_mangle() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56c760ab41b9b4cb9680d873b8f9955be21434f4;p=thirdparty%2Fsamba.git s3: Add some const to name_mangle() --- diff --git a/source3/include/proto.h b/source3/include/proto.h index bd9665c274f..a6ac5122d1f 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -3074,7 +3074,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(char *buf,int ofs, fstring name); int name_len(char *s1); diff --git a/source3/libsmb/nmblib.c b/source3/libsmb/nmblib.c index 5f3eda44fe2..1206d9ddb3d 100644 --- a/source3/libsmb/nmblib.c +++ b/source3/libsmb/nmblib.c @@ -1279,7 +1279,7 @@ static int name_interpret(char *in, fstring name) Note: 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;