aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/lpr
diff options
context:
space:
mode:
authorAlfred Perlstein <alfred@FreeBSD.org>2002-05-28 19:23:47 +0000
committerAlfred Perlstein <alfred@FreeBSD.org>2002-05-28 19:23:47 +0000
commit16d8455dcca2a0baeda299a571ee469b01955901 (patch)
tree7ee0aa518d99e25bc97eba167e9540f0806b4181 /usr.sbin/lpr
parent3613e24cdcb1f71aaa441acf62ffeaf98e3b403c (diff)
downloadsrc-16d8455dcca2a0baeda299a571ee469b01955901.tar.gz
src-16d8455dcca2a0baeda299a571ee469b01955901.zip
Assume __STDC__, remove non-__STDC__ code.
Notes
Notes: svn path=/head/; revision=97421
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r--usr.sbin/lpr/common_source/common.c15
-rw-r--r--usr.sbin/lpr/lpd/printjob.c15
-rw-r--r--usr.sbin/lpr/lpd/recvjob.c14
3 files changed, 0 insertions, 44 deletions
diff --git a/usr.sbin/lpr/common_source/common.c b/usr.sbin/lpr/common_source/common.c
index 5818cd7b8c01..a61bba3e87bb 100644
--- a/usr.sbin/lpr/common_source/common.c
+++ b/usr.sbin/lpr/common_source/common.c
@@ -534,28 +534,13 @@ trstat_write(struct printer *pp, tr_sendrecv sendrecv, size_t bytecnt,
#undef UPD_EOSTAT
}
-#ifdef __STDC__
#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
void
-#ifdef __STDC__
fatal(const struct printer *pp, const char *msg, ...)
-#else
-fatal(pp, msg, va_alist)
- const struct printer *pp;
- char *msg;
- va_dcl
-#endif
{
va_list ap;
-#ifdef __STDC__
va_start(ap, msg);
-#else
- va_start(ap);
-#endif
/* this error message is being sent to the 'from_host' */
if (from_host != local_host)
(void)printf("%s: ", local_host);
diff --git a/usr.sbin/lpr/lpd/printjob.c b/usr.sbin/lpr/lpd/printjob.c
index 59ccccb1124b..876584bfc5a8 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 d9f97bf51316..69a654d8b240 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);