/*
- * "$Id: http.h,v 1.33.2.11 2002/05/09 03:44:17 mike Exp $"
+ * "$Id: http.h,v 1.33.2.12 2002/05/15 01:57:00 mike Exp $"
*
* Hyper-Text Transport Protocol definitions for the Common UNIX Printing
* System (CUPS).
extern void httpInitialize(void);
extern int httpOptions(http_t *http, const char *uri);
extern int httpPost(http_t *http, const char *uri);
-extern int httpPrintf(http_t *http, const char *format, ...);
+extern int httpPrintf(http_t *http, const char *format, ...)
+# ifdef __GNUC__
+__attribute__ ((__format__ (__printf__, 2, 3)))
+# endif /* __GNUC__ */
+;
extern int httpPut(http_t *http, const char *uri);
extern int httpRead(http_t *http, char *buffer, int length);
extern int httpReconnect(http_t *http);
#endif /* !_IPP_HTTP_H_ */
/*
- * End of "$Id: http.h,v 1.33.2.11 2002/05/09 03:44:17 mike Exp $".
+ * End of "$Id: http.h,v 1.33.2.12 2002/05/15 01:57:00 mike Exp $".
*/
/*
- * "$Id: snprintf.c,v 1.4.2.4 2002/05/09 02:22:09 mike Exp $"
+ * "$Id: snprintf.c,v 1.4.2.5 2002/05/15 01:57:00 mike Exp $"
*
* snprintf functions for the Common UNIX Printing System (CUPS).
*
*
* Contents:
*
- * ipp_vsnprintf() - Format a string into a fixed size buffer.
- * ipp_snprintf() - Format a string into a fixed size buffer.
+ * cups_vsnprintf() - Format a string into a fixed size buffer.
+ * cups_snprintf() - Format a string into a fixed size buffer.
*/
/*
#ifndef HAVE_VSNPRINTF
/*
- * 'ipp_vsnprintf()' - Format a string into a fixed size buffer.
+ * 'cups_vsnprintf()' - Format a string into a fixed size buffer.
*/
int /* O - Number of bytes formatted */
-ipp_vsnprintf(char *buffer, /* O - Output buffer */
+cups_vsnprintf(char *buffer, /* O - Output buffer */
size_t bufsize, /* O - Size of output buffer */
const char *format, /* I - printf-style format string */
va_list ap) /* I - Pointer to additional arguments */
#ifndef HAVE_SNPRINTF
/*
- * 'ipp_snprintf()' - Format a string into a fixed size buffer.
+ * 'cups_snprintf()' - Format a string into a fixed size buffer.
*/
int /* O - Number of bytes formatted */
-ipp_snprintf(char *buffer, /* O - Output buffer */
+cups_snprintf(char *buffer, /* O - Output buffer */
size_t bufsize, /* O - Size of output buffer */
const char *format, /* I - printf-style format string */
...) /* I - Additional arguments as needed */
/*
- * End of "$Id: snprintf.c,v 1.4.2.4 2002/05/09 02:22:09 mike Exp $".
+ * End of "$Id: snprintf.c,v 1.4.2.5 2002/05/15 01:57:00 mike Exp $".
*/
/*
- * "$Id: string.c,v 1.5.2.4 2002/05/09 02:22:09 mike Exp $"
+ * "$Id: string.c,v 1.5.2.5 2002/05/15 01:57:01 mike Exp $"
*
* String functions for the Common UNIX Printing System (CUPS).
*
*
* Contents:
*
- * ipp_strdup() - Duplicate a string.
- * ipp_strcasecmp() - Do a case-insensitive comparison.
- * ipp_strncasecmp() - Do a case-insensitive comparison on up to N chars.
+ * cups_strdup() - Duplicate a string.
+ * cups_strcasecmp() - Do a case-insensitive comparison.
+ * cups_strncasecmp() - Do a case-insensitive comparison on up to N chars.
*/
/*
/*
- * 'ipp_strdup()' - Duplicate a string.
+ * 'cups_strdup()' - Duplicate a string.
*/
# ifndef HAVE_STRDUP
char * /* O - New string pointer */
-ipp_strdup(const char *s) /* I - String to duplicate */
+cups_strdup(const char *s) /* I - String to duplicate */
{
char *t; /* New string pointer */
/*
- * 'ipp_strcasecmp()' - Do a case-insensitive comparison.
+ * 'cups_strcasecmp()' - Do a case-insensitive comparison.
*/
# ifndef HAVE_STRCASECMP
int /* O - Result of comparison (-1, 0, or 1) */
-ipp_strcasecmp(const char *s, /* I - First string */
+cups_strcasecmp(const char *s, /* I - First string */
const char *t) /* I - Second string */
{
while (*s != '\0' && *t != '\0')
# endif /* !HAVE_STRCASECMP */
/*
- * 'ipp_strncasecmp()' - Do a case-insensitive comparison on up to N chars.
+ * 'cups_strncasecmp()' - Do a case-insensitive comparison on up to N chars.
*/
# ifndef HAVE_STRNCASECMP
int /* O - Result of comparison (-1, 0, or 1) */
-ipp_strncasecmp(const char *s, /* I - First string */
+cups_strncasecmp(const char *s, /* I - First string */
const char *t, /* I - Second string */
size_t n) /* I - Maximum number of characters to compare */
{
/*
- * End of "$Id: string.c,v 1.5.2.4 2002/05/09 02:22:09 mike Exp $".
+ * End of "$Id: string.c,v 1.5.2.5 2002/05/15 01:57:01 mike Exp $".
*/
/*
- * "$Id: string.h,v 1.7.2.6 2002/05/09 02:22:09 mike Exp $"
+ * "$Id: string.h,v 1.7.2.7 2002/05/15 01:57:01 mike Exp $"
*
* String definitions for the Common UNIX Printing System (CUPS).
*
*/
# ifndef HAVE_STRDUP
-extern char *ipp_strdup(const char *);
-# define strdup ipp_strdup
+extern char *cups_strdup(const char *);
+# define strdup cups_strdup
# endif /* !HAVE_STRDUP */
# ifndef HAVE_STRCASECMP
-extern int ipp_strcasecmp(const char *, const char *);
-# define strcasecmp ipp_strcasecmp
+extern int cups_strcasecmp(const char *, const char *);
+# define strcasecmp cups_strcasecmp
# endif /* !HAVE_STRCASECMP */
# ifndef HAVE_STRNCASECMP
-extern int ipp_strncasecmp(const char *, const char *, size_t n);
-# define strncasecmp ipp_strncasecmp
+extern int cups_strncasecmp(const char *, const char *, size_t n);
+# define strncasecmp cups_strncasecmp
# endif /* !HAVE_STRNCASECMP */
# ifndef HAVE_SNPRINTF
-extern int ipp_snprintf(char *, size_t, const char *, ...);
-# define snprintf ipp_snprintf
+extern int cups_snprintf(char *, size_t, const char *, ...)
+# ifdef __GNUC__
+__attribute__ ((__format__ (__printf__, 3, 4)))
+# endif /* __GNUC__ */
+;
+# define snprintf cups_snprintf
# endif /* !HAVE_SNPRINTF */
# ifndef HAVE_VSNPRINTF
-extern int ipp_vsnprintf(char *, size_t, const char *, va_list);
-# define vsnprintf ipp_vsnprintf
+extern int cups_vsnprintf(char *, size_t, const char *, va_list);
+# define vsnprintf cups_vsnprintf
# endif /* !HAVE_VSNPRINTF */
#endif /* !_IPP_STRING_H_ */
/*
- * End of "$Id: string.h,v 1.7.2.6 2002/05/09 02:22:09 mike Exp $".
+ * End of "$Id: string.h,v 1.7.2.7 2002/05/15 01:57:01 mike Exp $".
*/
/*
- * "$Id: client.c,v 1.91.2.10 2002/04/23 18:40:41 mike Exp $"
+ * "$Id: client.c,v 1.91.2.11 2002/05/15 01:57:01 mike Exp $"
*
* Client routines for the Common UNIX Printing System (CUPS) scheduler.
*
http_addr_t temp; /* Temporary address variable */
- LogMessage(L_DEBUG2, "AcceptClient(%08x) %d NumClients = %d",
+ LogMessage(L_DEBUG2, "AcceptClient(%p) %d NumClients = %d",
lis, lis->fd, NumClients);
/*
fstat(con->file, &filestats);
LogMessage(L_DEBUG2, "ReadClient() %d Closing data file %d, size = %d.",
- con->http.fd, con->file, filestats.st_size);
+ con->http.fd, con->file, (int)filestats.st_size);
close(con->file);
con->file = 0;
fstat(con->file, &filestats);
LogMessage(L_DEBUG2, "ReadClient() %d Closing data file %d, size = %d.",
- con->http.fd, con->file, filestats.st_size);
+ con->http.fd, con->file, (int)filestats.st_size);
close(con->file);
con->file = 0;
}
LogMessage(L_DEBUG2, "check_if_modified() %d sizes=%d,%d dates=%d,%d",
- con->http.fd, size, filestats->st_size, date, filestats->st_mtime);
+ con->http.fd, size, (int)filestats->st_size, (int)date,
+ (int)filestats->st_mtime);
return ((size != filestats->st_size && size != 0) ||
(date < filestats->st_mtime && date != 0) ||
s = con->http.fields[HTTP_FIELD_AUTHORIZATION];
- LogMessage(L_DEBUG2, "decode_auth(%08x): Authorization string = \"%s\"",
+ LogMessage(L_DEBUG2, "decode_auth(%p): Authorization string = \"%s\"",
con, s);
if (strncmp(s, "Basic", 5) == 0)
}
LogMessage(L_DEBUG2, "get_file() %d filename=%s size=%d",
- con->http.fd, filename, status ? -1 : filestats->st_size);
+ con->http.fd, filename, status ? -1 : (int)filestats->st_size);
if (status)
return (NULL);
/*
- * End of "$Id: client.c,v 1.91.2.10 2002/04/23 18:40:41 mike Exp $".
+ * End of "$Id: client.c,v 1.91.2.11 2002/05/15 01:57:01 mike Exp $".
*/
/*
- * "$Id: conf.h,v 1.36.2.4 2002/05/14 01:25:41 mike Exp $"
+ * "$Id: conf.h,v 1.36.2.5 2002/05/15 01:57:02 mike Exp $"
*
* Configuration file definitions for the Common UNIX Printing System (CUPS)
* scheduler.
extern char *GetDateTime(time_t t);
extern int ReadConfiguration(void);
extern int LogRequest(client_t *con, http_status_t code);
-extern int LogMessage(int level, const char *message, ...);
+extern int LogMessage(int level, const char *message, ...)
+#ifdef __GNUC__
+__attribute__ ((__format__ (__printf__, 2, 3)))
+#endif /* __GNUC__ */
+;
extern int LogPage(job_t *job, const char *page);
/*
- * End of "$Id: conf.h,v 1.36.2.4 2002/05/14 01:25:41 mike Exp $".
+ * End of "$Id: conf.h,v 1.36.2.5 2002/05/15 01:57:02 mike Exp $".
*/
/*
- * "$Id: ipp.c,v 1.127.2.13 2002/05/09 03:08:02 mike Exp $"
+ * "$Id: ipp.c,v 1.127.2.14 2002/05/15 01:57:02 mike Exp $"
*
* IPP routines for the Common UNIX Printing System (CUPS) scheduler.
*
LogMessage(L_INFO, "Job %d queued on \'%s\' by \'%s\'.", job->id,
job->dest, job->username);
- LogMessage(L_DEBUG, "Job %d hold_until = %d", job->id, job->hold_until);
+ LogMessage(L_DEBUG, "Job %d hold_until = %d", job->id, (int)job->hold_until);
SaveJob(job->id);
/*
- * End of "$Id: ipp.c,v 1.127.2.13 2002/05/09 03:08:02 mike Exp $".
+ * End of "$Id: ipp.c,v 1.127.2.14 2002/05/15 01:57:02 mike Exp $".
*/
/*
- * "$Id: job.c,v 1.124.2.16 2002/05/14 01:25:42 mike Exp $"
+ * "$Id: job.c,v 1.124.2.17 2002/05/15 01:57:04 mike Exp $"
*
* Job management routines for the Common UNIX Printing System (CUPS).
*
job->hold_until += 24 * 60 * 60 * 60;
}
- LogMessage(L_DEBUG, "SetJobHoldUntil: hold_until = %d", job->hold_until);
+ LogMessage(L_DEBUG, "SetJobHoldUntil: hold_until = %d", (int)job->hold_until);
}
fontpath[1050]; /* CUPS_FONTPATH environment variable */
- LogMessage(L_DEBUG, "StartJob(%d, %08x)", id, printer);
+ LogMessage(L_DEBUG, "StartJob(%d, %p)", id, printer);
for (current = Jobs; current != NULL; current = current->next)
if (current->id == id)
int pid; /* Process ID */
- LogMessage(L_DEBUG, "start_process(\"%s\", %08x, %08x, %d, %d, %d)",
+ LogMessage(L_DEBUG, "start_process(\"%s\", %p, %p, %d, %d, %d)",
command, argv, envp, infd, outfd, errfd);
if ((pid = fork()) == 0)
/*
- * End of "$Id: job.c,v 1.124.2.16 2002/05/14 01:25:42 mike Exp $".
+ * End of "$Id: job.c,v 1.124.2.17 2002/05/15 01:57:04 mike Exp $".
*/