Index: config-scripts/cups-common.m4 =================================================================== --- config-scripts/cups-common.m4 (revision 9476) +++ config-scripts/cups-common.m4 (working copy) @@ -219,7 +219,7 @@ fi if test $check_libusb = yes; then - AC_CHECK_LIB(usb, usb_init,[ + AC_CHECK_LIB(usb, usb_get_string_simple,[ AC_CHECK_HEADER(usb.h, AC_DEFINE(HAVE_USB_H) LIBUSB="-lusb")]) Index: systemv/lpadmin.c =================================================================== --- systemv/lpadmin.c (revision 9476) +++ systemv/lpadmin.c (working copy) @@ -3,7 +3,7 @@ * * "lpadmin" command for CUPS. * - * Copyright 2007-2010 by Apple Inc. + * Copyright 2007-2011 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * These coded instructions, statements, and computer programs are the @@ -1230,7 +1230,7 @@ ppdMarkDefaults(ppd); cupsMarkOptions(ppd, num_options, options); - if ((out = cupsTempFile2(tempfile, sizeof(tempfile))) < 0) + if ((out = cupsTempFile2(tempfile, sizeof(tempfile))) == NULL) { _cupsLangPrintError(NULL, _("lpadmin: Unable to create temporary file")); ippDelete(request); Index: scheduler/ipp.c =================================================================== --- scheduler/ipp.c (revision 9476) +++ scheduler/ipp.c (working copy) @@ -3,7 +3,7 @@ * * IPP routines for the CUPS scheduler. * - * Copyright 2007-2010 by Apple Inc. + * Copyright 2007-2011 by Apple Inc. * Copyright 1997-2007 by Easy Software Products, all rights reserved. * * This file contains Kerberos support code, copyright 2006 by @@ -5495,7 +5495,11 @@ case IPP_TAG_ENUM : if (!strncmp(s, "time-at-", 8)) { - struct timeval tv = { attr->values[i].integer, 0 }; + struct timeval tv; /* Time value */ + + tv.tv_sec = attr->values[i].integer; + tv.tv_usec = 0; + cupsFilePuts(out, cupsdGetDateTime(&tv, CUPSD_TIME_STANDARD)); } else