scheduler/conf.c:
- Always include <syslog.h> now.
scheduler/cups-driverd.c:
- list_ppds(): Don't take sizeof(sync), but sizeof(ppdsync).
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@6505
7a7537e8-13f0-0310-91df-
b6672ffda945
#include <stdarg.h>
#include <grp.h>
#include <sys/utsname.h>
+#include <syslog.h>
#include <cups/dir.h>
-#ifdef HAVE_VSYSLOG
-# include <syslog.h>
-#endif /* HAVE_VSYSLOG */
-
/*
* Possibly missing network definitions...
== sizeof(ppdsync) &&
ppdsync == PPD_SYNC &&
!stat(filename, &fileinfo) &&
- (fileinfo.st_size - sizeof(sync) % sizeof(ppd_rec_t)) == 0 &&
- (NumPPDs = (fileinfo.st_size - sizeof(sync)) / sizeof(ppd_rec_t)) > 0)
+ (fileinfo.st_size - sizeof(ppdsync) % sizeof(ppd_rec_t)) == 0 &&
+ (NumPPDs = (fileinfo.st_size - sizeof(ppdsync)) /
+ sizeof(ppd_rec_t)) > 0)
{
/*
* We have a ppds.dat file, so read it!