From 055c90456eced7341ece07074c0655dae8b92ce1 Mon Sep 17 00:00:00 2001 From: Garance A Drosehn Date: Mon, 14 Jul 2003 15:54:41 +0000 Subject: [PATCH] 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 --- usr.sbin/lpr/lpd/extern.h | 2 +- usr.sbin/lpr/lpd/lpd.c | 4 +--- usr.sbin/lpr/lpd/lpdchar.c | 11 +++++------ usr.sbin/lpr/lpd/modes.c | 11 +++++------ usr.sbin/lpr/lpd/printjob.c | 10 ++++------ usr.sbin/lpr/lpd/recvjob.c | 7 +++---- 6 files changed, 19 insertions(+), 26 deletions(-) diff --git a/usr.sbin/lpr/lpd/extern.h b/usr.sbin/lpr/lpd/extern.h index 497594ec727c..14cb9e1bcffc 100644 --- a/usr.sbin/lpr/lpd/extern.h +++ b/usr.sbin/lpr/lpd/extern.h @@ -34,7 +34,7 @@ * $FreeBSD$ */ -#include +#include "lp.cdefs.h" /* A cross-platform version of */ 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 e045e8fd82ee..9597a35c9828 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 +#include "lp.cdefs.h" /* A cross-platform version of */ __FBSDID("$FreeBSD$"); /* diff --git a/usr.sbin/lpr/lpd/lpdchar.c b/usr.sbin/lpr/lpd/lpdchar.c index ba39a9f1ed3f..9705a96c2b15 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 */ +__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 2abac5aa1d56..db698935f113 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 */ +__FBSDID("$FreeBSD$"); #include #include diff --git a/usr.sbin/lpr/lpd/printjob.c b/usr.sbin/lpr/lpd/printjob.c index feab6bb40140..302687adebf3 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 */ +__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 69a654d8b240..e15bad18c566 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 */ +__FBSDID("$FreeBSD$"); /* * Receive printer jobs from the network, queue them and