Fixed compiler warning.
authorTim Potter <tpot@samba.org>
Thu, 1 Mar 2001 06:36:57 +0000 (06:36 +0000)
committerTim Potter <tpot@samba.org>
Thu, 1 Mar 2001 06:36:57 +0000 (06:36 +0000)
source/libsmb/cliconnect.c

index fd0218b9086b2b6197a43bd895cbb00a1779ed60..f2f9b89ea4454126aee9482c2eb450168edd2313 100644 (file)
@@ -192,10 +192,10 @@ BOOL cli_session_setup(struct cli_state *cli,
               * Save off some of the connected server
               * info.
               */
-             char *p = smb_buf(cli->inbuf);
-             p += clistr_pull(cli, cli->server_os, p, sizeof(fstring), -1, CLISTR_TERMINATE|CLISTR_CONVERT);
-             p += clistr_pull(cli, cli->server_type, p, sizeof(fstring), -1, CLISTR_TERMINATE|CLISTR_CONVERT);
-             p += clistr_pull(cli, cli->server_domain, p, sizeof(fstring), -1, CLISTR_TERMINATE|CLISTR_CONVERT);
+             char *q = smb_buf(cli->inbuf);
+             q += clistr_pull(cli, cli->server_os, q, sizeof(fstring), -1, CLISTR_TERMINATE|CLISTR_CONVERT);
+             q += clistr_pull(cli, cli->server_type, q, sizeof(fstring), -1, CLISTR_TERMINATE|CLISTR_CONVERT);
+             q += clistr_pull(cli, cli->server_domain, q, sizeof(fstring), -1, CLISTR_TERMINATE|CLISTR_CONVERT);
       }
 
       fstrcpy(cli->user_name, user);