[cups.bugs] [MOD] STR #3402: usb-unix.c won't compile on NetBSD

Bill Green bill at supposedly.org
Sun Nov 1 11:46:42 PST 2009


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

usb-unix.c function prototype declares side_cb() (line 40) as int, function
definition (line 563) is void.  Function returns int. Am I missing
something (because I'm not a developer...)?  Patch (not tested, other than
that it compiles) follows.

--- backend/usb-unix.c.orig     2009-08-31 14:45:43.000000000 -0400
+++ backend/usb-unix.c  2009-10-31 16:46:22.000000000 -0400
@@ -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) */

Link: http://www.cups.org/str.php?L3402
Version: 1.4.1





More information about the cups-devel mailing list