summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr/lpd
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2003-07-14 15:54:41 +0000
committergad <gad@FreeBSD.org>2003-07-14 15:54:41 +0000
commit317e204ef0413b9a2687f91c1103037a8f03a20f (patch)
treee5c019abb32352a022d7a7de381dec56de01e766 /usr.sbin/lpr/lpd
parentb1f12e4ff117adb08af18da02e131947b1c43e2e (diff)
downloadFreeBSD-src-317e204ef0413b9a2687f91c1103037a8f03a20f.zip
FreeBSD-src-317e204ef0413b9a2687f91c1103037a8f03a20f.tar.gz
More changes to use __FBSDID() for setting rcsids, and fix the
format of 'sccsid' lines so they consistently match style(9) guidelines. Inspired by recent update to lpd.c by charnier. Reviewed by: discussed on cvs-src & with bde and obrien MFC after: 15 days
Diffstat (limited to 'usr.sbin/lpr/lpd')
-rw-r--r--usr.sbin/lpr/lpd/extern.h2
-rw-r--r--usr.sbin/lpr/lpd/lpd.c4
-rw-r--r--usr.sbin/lpr/lpd/lpdchar.c11
-rw-r--r--usr.sbin/lpr/lpd/modes.c11
-rw-r--r--usr.sbin/lpr/lpd/printjob.c10
-rw-r--r--usr.sbin/lpr/lpd/recvjob.c7
6 files changed, 19 insertions, 26 deletions
diff --git a/usr.sbin/lpr/lpd/extern.h b/usr.sbin/lpr/lpd/extern.h
index 497594e..14cb9e1 100644
--- a/usr.sbin/lpr/lpd/extern.h
+++ b/usr.sbin/lpr/lpd/extern.h
@@ -34,7 +34,7 @@
* $FreeBSD$
*/
-#include <sys/cdefs.h>
+#include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */
extern char scnkey[][HEIGHT]; /* in lpdchar.c */
extern int lflag; /* in lpd.c */
diff --git a/usr.sbin/lpr/lpd/lpd.c b/usr.sbin/lpr/lpd/lpd.c
index e045e8f..9597a35 100644
--- a/usr.sbin/lpr/lpd/lpd.c
+++ b/usr.sbin/lpr/lpd/lpd.c
@@ -39,12 +39,10 @@ static const char copyright[] =
#endif /* not lint */
#if 0
-#ifndef lint
static char sccsid[] = "@(#)lpd.c 8.7 (Berkeley) 5/10/95";
-#endif /* not lint */
#endif
-#include <sys/cdefs.h>
+#include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */
__FBSDID("$FreeBSD$");
/*
diff --git a/usr.sbin/lpr/lpd/lpdchar.c b/usr.sbin/lpr/lpd/lpdchar.c
index ba39a9f..9705a96 100644
--- a/usr.sbin/lpr/lpd/lpdchar.c
+++ b/usr.sbin/lpr/lpd/lpdchar.c
@@ -31,13 +31,12 @@
* SUCH DAMAGE.
*/
-#ifndef lint
-/*
+#if 0
static char sccsid[] = "@(#)lpdchar.c 8.1 (Berkeley) 6/6/93";
-*/
-static const char rcsid[] =
- "$FreeBSD$";
-#endif /* not lint */
+#endif
+
+#include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */
+__FBSDID("$FreeBSD$");
/*
* Character set for line printer daemon
diff --git a/usr.sbin/lpr/lpd/modes.c b/usr.sbin/lpr/lpd/modes.c
index 2abac5a..db69893 100644
--- a/usr.sbin/lpr/lpd/modes.c
+++ b/usr.sbin/lpr/lpd/modes.c
@@ -31,13 +31,12 @@
* SUCH DAMAGE.
*/
-#ifndef lint
-/*
+#if 0
static char sccsid[] = "@(#)modes.c 8.3 (Berkeley) 4/2/94";
-*/
-static const char rcsid[] =
- "$FreeBSD$";
-#endif /* not lint */
+#endif
+
+#include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */
+__FBSDID("$FreeBSD$");
#include <stddef.h>
#include <string.h>
diff --git a/usr.sbin/lpr/lpd/printjob.c b/usr.sbin/lpr/lpd/printjob.c
index feab6bb..302687a 100644
--- a/usr.sbin/lpr/lpd/printjob.c
+++ b/usr.sbin/lpr/lpd/printjob.c
@@ -38,14 +38,12 @@ static const char copyright[] =
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
-#ifndef lint
-/*
+#if 0
static char sccsid[] = "@(#)printjob.c 8.7 (Berkeley) 5/10/95";
-*/
-static const char rcsid[] =
- "$FreeBSD$";
-#endif /* not lint */
+#endif
+#include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */
+__FBSDID("$FreeBSD$");
/*
* printjob -- print jobs in the queue.
diff --git a/usr.sbin/lpr/lpd/recvjob.c b/usr.sbin/lpr/lpd/recvjob.c
index 69a654d..e15bad1 100644
--- a/usr.sbin/lpr/lpd/recvjob.c
+++ b/usr.sbin/lpr/lpd/recvjob.c
@@ -38,13 +38,12 @@ static const char copyright[] =
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
-#ifndef lint
#if 0
static char sccsid[] = "@(#)recvjob.c 8.2 (Berkeley) 4/27/95";
#endif
-static const char rcsid[] =
- "$FreeBSD$";
-#endif /* not lint */
+
+#include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */
+__FBSDID("$FreeBSD$");
/*
* Receive printer jobs from the network, queue them and
OpenPOWER on IntegriCloud