From dbfff90185daecfa452520276c8cabdce3b1c616 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 26 Apr 2010 22:09:21 +0200 Subject: s3: fix some build warnings. Guenther --- source3/utils/net_rap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/utils') diff --git a/source3/utils/net_rap.c b/source3/utils/net_rap.c index ce94e774e4..605043734c 100644 --- a/source3/utils/net_rap.c +++ b/source3/utils/net_rap.c @@ -246,7 +246,7 @@ static int rap_share_add(struct net_context *c, int argc, const char **argv) return net_rap_share_usage(c, argc, argv); } *p = 0; - strlcpy(sinfo.share_name, sharename, sizeof(sinfo.share_name)); + strlcpy((char *)sinfo.share_name, sharename, sizeof(sinfo.share_name)); sinfo.reserved1 = '\0'; sinfo.share_type = 0; sinfo.comment = smb_xstrdup(c->opt_comment); @@ -822,7 +822,7 @@ static int rap_user_add(struct net_context *c, int argc, const char **argv) if (!NT_STATUS_IS_OK(net_make_ipc_connection(c, 0, &cli))) return -1; - safe_strcpy(userinfo.user_name, argv[0], sizeof(userinfo.user_name)-1); + safe_strcpy((char *)userinfo.user_name, argv[0], sizeof(userinfo.user_name)-1); if (c->opt_flags == -1) c->opt_flags = 0x21; @@ -967,7 +967,7 @@ static int rap_group_add(struct net_context *c, int argc, const char **argv) return -1; /* BB check for length 21 or smaller explicitly ? BB */ - safe_strcpy(grinfo.group_name, argv[0], sizeof(grinfo.group_name)-1); + safe_strcpy((char *)grinfo.group_name, argv[0], sizeof(grinfo.group_name)-1); grinfo.reserved1 = '\0'; grinfo.comment = smb_xstrdup(c->opt_comment ? c->opt_comment : ""); -- cgit