]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
spoolss: Align some integer types
authorVolker Lendecke <vl@samba.org>
Mon, 28 Sep 2020 09:56:33 +0000 (11:56 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 30 Sep 2020 15:58:38 +0000 (15:58 +0000)
SPOOLSS_NOTIFY_MSG_CTR->num_groups is defined as uint32_t

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_server/spoolss/srv_spoolss_nt.c

index 34c6266c06ce4ce7896c0d55b5bfc049045f313d..0f2cfd7d69018cf105048794174827ef694bc44a 100644 (file)
@@ -1020,7 +1020,7 @@ static SPOOLSS_NOTIFY_MSG_GROUP* notify_ctr_getgroup( SPOOLSS_NOTIFY_MSG_CTR *ct
  How many groups of change messages do we have ?
  **********************************************************************/
 
-static int notify_msg_ctr_numgroups( SPOOLSS_NOTIFY_MSG_CTR *ctr )
+static uint32_t notify_msg_ctr_numgroups( SPOOLSS_NOTIFY_MSG_CTR *ctr )
 {
        if ( !ctr )
                return 0;
@@ -1364,13 +1364,12 @@ static void receive_notify2_message_list(struct messaging_context *msg,
                                         struct server_id server_id,
                                         DATA_BLOB *data)
 {
-       size_t                  msg_count, i;
+       size_t                  msg_count, i, num_groups;
        char                    *buf = (char *)data->data;
        char                    *msg_ptr;
        size_t                  msg_len;
        SPOOLSS_NOTIFY_MSG      notify;
        SPOOLSS_NOTIFY_MSG_CTR  messages;
-       int                     num_groups;
 
        if (data->length < 4) {
                DEBUG(0,("receive_notify2_message_list: bad message format (len < 4)!\n"));