diff options
author | alfred <alfred@FreeBSD.org> | 2002-05-28 19:23:47 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-05-28 19:23:47 +0000 |
commit | 197cf7d2ba28470f2a8229755320aff1c6f22184 (patch) | |
tree | 7ee0aa518d99e25bc97eba167e9540f0806b4181 /usr.sbin/lpr/lpd | |
parent | a7dd0de84ac7e23d8e7701371397f76a745caf36 (diff) | |
download | FreeBSD-src-197cf7d2ba28470f2a8229755320aff1c6f22184.zip FreeBSD-src-197cf7d2ba28470f2a8229755320aff1c6f22184.tar.gz |
Assume __STDC__, remove non-__STDC__ code.
Diffstat (limited to 'usr.sbin/lpr/lpd')
-rw-r--r-- | usr.sbin/lpr/lpd/printjob.c | 15 | ||||
-rw-r--r-- | usr.sbin/lpr/lpd/recvjob.c | 14 |
2 files changed, 0 insertions, 29 deletions
diff --git a/usr.sbin/lpr/lpd/printjob.c b/usr.sbin/lpr/lpd/printjob.c index 59ccccb..876584b 100644 --- a/usr.sbin/lpr/lpd/printjob.c +++ b/usr.sbin/lpr/lpd/printjob.c @@ -1846,30 +1846,15 @@ setty(const struct printer *pp) } } -#ifdef __STDC__ #include <stdarg.h> -#else -#include <varargs.h> -#endif static void -#ifdef __STDC__ pstatus(const struct printer *pp, const char *msg, ...) -#else -pstatus(pp, msg, va_alist) - const struct printer *pp; - char *msg; - va_dcl -#endif { int fd; char *buf; va_list ap; -#ifdef __STDC__ va_start(ap, msg); -#else - va_start(ap); -#endif umask(0); fd = open(pp->status_file, O_WRONLY|O_CREAT|O_EXLOCK, STAT_FILE_MODE); diff --git a/usr.sbin/lpr/lpd/recvjob.c b/usr.sbin/lpr/lpd/recvjob.c index d9f97bf..69a654d 100644 --- a/usr.sbin/lpr/lpd/recvjob.c +++ b/usr.sbin/lpr/lpd/recvjob.c @@ -372,27 +372,13 @@ rcleanup(int signo __unused) dfname[0] = '\0'; } -#ifdef __STDC__ #include <stdarg.h> -#else -#include <varargs.h> -#endif static void -#ifdef __STDC__ frecverr(const char *msg, ...) -#else -frecverr(msg, va_alist) - char *msg; - va_dcl -#endif { va_list ap; -#ifdef __STDC__ va_start(ap, msg); -#else - va_start(ap); -#endif syslog(LOG_ERR, "Error receiving job from %s:", from_host); vsyslog(LOG_ERR, msg, ap); va_end(ap); |