]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r1716: Get rid of a compiler warning. "pipe" is a symbol that is defined as a system
authorVolker Lendecke <vlendec@samba.org>
Wed, 11 Aug 2004 01:30:23 +0000 (01:30 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:19 +0000 (10:52 -0500)
call, and gcc -Wall complains about a shadowed definition.

Volker

source/utils/net.c

index 30e94ac8a1bb2ba46c3ef5b357137563826707fe..6a1a97914a19b8d99df39cd5d1c9277e58dd8104 100644 (file)
@@ -215,7 +215,7 @@ NTSTATUS connect_to_ipc_anonymous(struct cli_state **c,
  *
  * @return Normal NTSTATUS return.
  **/
-NTSTATUS connect_local_pipe(struct cli_state **cli_local, int pipe, BOOL *got_pipe)
+NTSTATUS connect_local_pipe(struct cli_state **cli_local, int pipe_num, BOOL *got_pipe)
 {
        NTSTATUS nt_status;
        extern struct in_addr loopback_ip;
@@ -227,7 +227,7 @@ NTSTATUS connect_local_pipe(struct cli_state **cli_local, int pipe, BOOL *got_pi
        if (!NT_STATUS_IS_OK(nt_status)) 
                return nt_status;
 
-       if (!cli_nt_session_open(cli_tmp, pipe)) {
+       if (!cli_nt_session_open(cli_tmp, pipe_num)) {
                DEBUG(0, ("couldn't not initialise spoolss pipe\n"));
                cli_shutdown(cli_tmp);
                return NT_STATUS_UNSUCCESSFUL;