[cups.development] [Patch] Fix cups 1.4.1 build with gcc 4.4.1

Frederik Himpe fhimpe at telenet.be
Tue Sep 15 10:06:29 PDT 2009


Compilation of cups 1.4.1 fails on x86_64 Linux (Mandriva Cooker), gcc 
4.4.1 with this error:

In file included from usb.c:63:
usb-unix.c:564: error: conflicting types for 'side_cb'
usb-unix.c:39: note: previous declaration of 'side_cb' was here
usb-unix.c: In function 'side_cb':
usb-unix.c:582: warning: 'return' with a value, in function returning void
usb-unix.c:625: warning: 'return' with a value, in function returning void

Patch to fix this error:

--- cups-1.4.1/backend/usb-unix.c~	2009-08-31 20:45:43.000000000 +0200
+++ cups-1.4.1/backend/usb-unix.c	2009-09-14 21:58:09.000000000 +0200
@@ -560,7 +560,7 @@
  * 'side_cb()' - Handle side-channel requests...
  */
 
-static void
+static int
 side_cb(int         print_fd,		/* I - Print file */
         int         device_fd,		/* I - Device file */
         int         snmp_fd,		/* I - SNMP socket (unused) */



-- 
Frederik Himpe





More information about the cups-devel mailing list