]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Address some build warnings on Linux (Issue #4881)
authorMichael R Sweet <michael.r.sweet@gmail.com>
Wed, 21 Sep 2016 16:52:43 +0000 (12:52 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Wed, 21 Sep 2016 16:52:43 +0000 (12:52 -0400)
CHANGES.txt
backend/ieee1284.c
scheduler/auth.c

index 49dd4f9d86c5d8dd2622a8fee28fa330e8716701..f1768a66235ccd17591adce484cb3197501992c8 100644 (file)
@@ -7,6 +7,7 @@ CHANGES IN CUPS V2.2.1
           control whether the scheduler automatically creates its own
           self-signed X.509 certificates for TLS connections (Issue #4876)
         - http*Connect did not handle partial failures (Issue #4870)
+        - Addressed some build warnings on Linux (Issue #4881)
         - Updated localizations (PR #4877)
 
 
index c77403b0b810d1c2df4212fed2de78d96d5fb6b0..0488174c427ec3a9daec09b0d195004ffacbfd60 100644 (file)
@@ -88,7 +88,7 @@ backendGetDeviceID(
     *device_id = '\0';
 
 #  ifdef __linux
-    if (ioctl(fd, LPIOC_GET_DEVICE_ID(device_id_size), device_id))
+    if (ioctl(fd, LPIOC_GET_DEVICE_ID((unsigned)device_id_size), device_id))
     {
      /*
       * Linux has to implement things differently for every device it seems.
index fca183b5c71283dd9f28eb353bdeb20c3cbe02b5..2af443d516b6b8e7d8015d99ac7ff80eeaf21738 100644 (file)
@@ -1179,14 +1179,14 @@ cupsdCheckGroup(
 #ifdef HAVE_GETGROUPLIST
     if (user)
     {
-      int      ngroups,                /* Number of groups */
-               groups[2048];           /* Groups that user belongs to */
+      int      ngroups;                /* Number of groups */
+      gid_t    groups[2048];           /* Groups that user belongs to */
 
       ngroups = (int)(sizeof(groups) / sizeof(groups[0]));
-      getgrouplist(username, (int)user->pw_gid, groups, &ngroups);
+      getgrouplist(username, user->pw_gid, groups, &ngroups);
 
       for (i = 0; i < ngroups; i ++)
-        if ((int)group->gr_gid == groups[i])
+        if (group->gr_gid == groups[i])
          return (1);
     }
 #endif /* HAVE_GETGROUPLIST */