compiler warning for unimportant uninitialised variable
authorLuke Leighton <lkcl@samba.org>
Wed, 6 May 1998 12:11:35 +0000 (12:11 +0000)
committerLuke Leighton <lkcl@samba.org>
Wed, 6 May 1998 12:11:35 +0000 (12:11 +0000)
(This used to be commit 81bf26309248b63cc7e167170a8b384c11126ded)

source3/rpc_server/srv_pipe_hnd.c

index 95aa46fd9a66401ba85ae17ac51dcd79562f6152..8abfb54c8fed49f82b809ac875c8022fa064295e 100644 (file)
@@ -146,18 +146,16 @@ int open_rpc_pipe_hnd(char *pipe_name, int cnum, uint16 vuid)
  ****************************************************************************/
 int read_pipe(uint16 pnum, char *data, uint32 pos, int n)
 {
-       int data_hdr_pos;
-       int data_pos;
        pipes_struct *p = &Pipes[pnum - PIPE_HANDLE_OFFSET];
        DEBUG(6,("read_pipe: %x", pnum));
 
        if (VALID_PNUM(pnum - PIPE_HANDLE_OFFSET))
        {
-               DEBUG(6,("name: %s cnum: %d open: %s data_pos: %d len: %d",
+               DEBUG(6,("name: %s cnum: %d open: %s pos: %d len: %d",
                          p->name,
                          p->cnum,
                          BOOLSTR(p->open),
-                         data_pos, n));
+                         pos, n));
        }
 
        if (OPEN_PNUM(pnum - PIPE_HANDLE_OFFSET))
@@ -165,6 +163,8 @@ int read_pipe(uint16 pnum, char *data, uint32 pos, int n)
                int num = 0;
                int len = 0;
                uint32 hdr_num = 0;
+               int data_hdr_pos;
+               int data_pos;
 
                DEBUG(6,("OK\n"));