removed warning about shadowed globals
authorGerald Carter <jerry@samba.org>
Tue, 10 Sep 2002 21:41:25 +0000 (21:41 +0000)
committerGerald Carter <jerry@samba.org>
Tue, 10 Sep 2002 21:41:25 +0000 (21:41 +0000)
source/rpc_server/srv_spoolss_nt.c

index 07c22b063a9fd9e230deda8a33c79ec5db5db6f1..8b5dcd3b6cf81b1d72a1795309db37ea14ed8800 100644 (file)
@@ -774,15 +774,15 @@ static TALLOC_CTX* notify_ctr_getctx( SPOOLSS_NOTIFY_MSG_CTR *ctr )
 /***********************************************************************
  **********************************************************************/
  
-static SPOOLSS_NOTIFY_MSG_GROUP* notify_ctr_getgroup( SPOOLSS_NOTIFY_MSG_CTR *ctr, uint32 index )
+static SPOOLSS_NOTIFY_MSG_GROUP* notify_ctr_getgroup( SPOOLSS_NOTIFY_MSG_CTR *ctr, uint32 idx )
 {
        if ( !ctr || !ctr->msg_groups )
                return NULL;
        
-       if ( index >= ctr->num_groups )
+       if ( idx >= ctr->num_groups )
                return NULL;
                
-       return &ctr->msg_groups[index];
+       return &ctr->msg_groups[idx];
 
 }
 
@@ -865,11 +865,11 @@ static int notify_msg_ctr_addmsg( SPOOLSS_NOTIFY_MSG_CTR *ctr, SPOOLSS_NOTIFY_MS
  back registered
  **********************************************************************/
 
-static void send_notify2_changes( SPOOLSS_NOTIFY_MSG_CTR *ctr, uint32 index )
+static void send_notify2_changes( SPOOLSS_NOTIFY_MSG_CTR *ctr, uint32 idx )
 {
        Printer_entry            *p;
        TALLOC_CTX               *mem_ctx = notify_ctr_getctx( ctr );
-       SPOOLSS_NOTIFY_MSG_GROUP *msg_group = notify_ctr_getgroup( ctr, index );
+       SPOOLSS_NOTIFY_MSG_GROUP *msg_group = notify_ctr_getgroup( ctr, idx );
        SPOOLSS_NOTIFY_MSG       *messages;