first pass at updating head branch to be to be the same as the SAMBA_2_0 branch
[kai/samba.git] / source3 / rpcclient / cmd_wkssvc.c
index 350aa2965778f6b94a8aaec9fe94983c51653f1a..0b8f469af372625d51857c29e5feedeaba92d0ec 100644 (file)
@@ -50,7 +50,7 @@ void cmd_wks_query_info(struct client_info *info)
 
        BOOL res = True;
 
-       bzero(&ctr, sizeof(ctr));
+       memset((char *)&ctr, '\0', sizeof(ctr));
 
        fstrcpy(dest_wks, "\\\\");
        fstrcat(dest_wks, info->dest_host);
@@ -58,7 +58,7 @@ void cmd_wks_query_info(struct client_info *info)
 
        if (next_token(NULL, tmp, NULL, sizeof(tmp)))
        {
-               info_level = strtoul(tmp, (char**)NULL, 10);
+               info_level = (uint32)strtol(tmp, (char**)NULL, 10);
        }
 
        DEBUG(4,("cmd_wks_query_info: server:%s info level: %d\n",
@@ -67,7 +67,7 @@ void cmd_wks_query_info(struct client_info *info)
        DEBUG(5, ("cmd_wks_query_info: smb_cli->fd:%d\n", smb_cli->fd));
 
        /* open LSARPC session. */
-       res = res ? cli_nt_session_open(smb_cli, PIPE_WKSSVC, False) : False;
+       res = res ? cli_nt_session_open(smb_cli, PIPE_WKSSVC) : False;
 
        /* send info level: receive requested info.  hopefully. */
        res = res ? do_wks_query_info(smb_cli,