summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-04-26 22:09:21 +0200
committerGünther Deschner <gd@samba.org>2010-04-26 22:53:00 +0200
commitdbfff90185daecfa452520276c8cabdce3b1c616 (patch)
tree6759c47742ae6779e047dae12a51bf953ae79dfb /source3/libsmb
parent725976290939e82bd43a0b8bce07df6068e65496 (diff)
downloadsamba-dbfff90185daecfa452520276c8cabdce3b1c616.tar.gz
samba-dbfff90185daecfa452520276c8cabdce3b1c616.tar.bz2
samba-dbfff90185daecfa452520276c8cabdce3b1c616.zip
s3: fix some build warnings.
Guenther
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clirap2.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/libsmb/clirap2.c b/source3/libsmb/clirap2.c
index 98702f6394..225eecd083 100644
--- a/source3/libsmb/clirap2.c
+++ b/source3/libsmb/clirap2.c
@@ -321,7 +321,7 @@ int cli_NetGroupAdd(struct cli_state *cli, struct rap_group_info_1 *grinfo)
PUTWORD(p, 0); /* reserved word 0 */
p = data;
- PUTSTRINGF(p, grinfo->group_name, RAP_GROUPNAME_LEN);
+ PUTSTRINGF(p, (const char *)grinfo->group_name, RAP_GROUPNAME_LEN);
PUTBYTE(p, 0); /* pad byte 0 */
PUTSTRINGP(p, grinfo->comment, data, soffset);
@@ -864,16 +864,16 @@ int cli_NetUserAdd(struct cli_state *cli, struct rap_user_info_1 * userinfo )
PUTWORD(p, 1); /* info level */
PUTWORD(p, 0); /* pwencrypt */
if(userinfo->passwrd)
- PUTWORD(p,MIN(strlen(userinfo->passwrd), RAP_UPASSWD_LEN));
+ PUTWORD(p,MIN(strlen((const char *)userinfo->passwrd), RAP_UPASSWD_LEN));
else
PUTWORD(p, 0); /* password length */
p = data;
memset(data, '\0', soffset);
- PUTSTRINGF(p, userinfo->user_name, RAP_USERNAME_LEN);
+ PUTSTRINGF(p, (const char *)userinfo->user_name, RAP_USERNAME_LEN);
PUTBYTE(p, 0); /* pad byte 0 */
- PUTSTRINGF(p, userinfo->passwrd, RAP_UPASSWD_LEN);
+ PUTSTRINGF(p, (const char *)userinfo->passwrd, RAP_UPASSWD_LEN);
PUTDWORD(p, 0); /* pw age - n.a. on user add */
PUTWORD(p, userinfo->priv);
PUTSTRINGP(p, userinfo->home_dir, data, soffset);
@@ -1366,7 +1366,7 @@ int cli_NetShareAdd(struct cli_state *cli, struct rap_share_info_2 * sinfo )
PUTWORD(p, 0); /* reserved word 0 */
p = data;
- PUTSTRINGF(p, sinfo->share_name, RAP_SHARENAME_LEN);
+ PUTSTRINGF(p, (const char *)sinfo->share_name, RAP_SHARENAME_LEN);
PUTBYTE(p, 0); /* pad byte 0 */
PUTWORD(p, sinfo->share_type);
@@ -1375,7 +1375,7 @@ int cli_NetShareAdd(struct cli_state *cli, struct rap_share_info_2 * sinfo )
PUTWORD(p, sinfo->maximum_users);
PUTWORD(p, sinfo->active_users);
PUTSTRINGP(p, sinfo->path, data, soffset);
- PUTSTRINGF(p, sinfo->password, RAP_SPASSWD_LEN);
+ PUTSTRINGF(p, (const char *)sinfo->password, RAP_SPASSWD_LEN);
SCVAL(p,-1,0x0A); /* required 0x0A at end of password */
if (cli_api(cli,