Take advantage of the common_source/lp.cdefs.h file to change lpr

source to use __FBSDID() for setting rcsids.  Also fix the format
of 'sccsid' lines to consistently match style(9) guidelines.

Reviewed by:	discussed with bde and obrien
MFC after:	15 days
This commit is contained in:
Garance A Drosehn 2003-07-14 05:15:21 +00:00
parent b9ec9b4d77
commit 1f589b4737
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=117541
12 changed files with 26 additions and 42 deletions

View File

@ -36,13 +36,11 @@
* SUCH DAMAGE.
*/
#ifndef lint
/*
#if 0
static char sccsid[] = "@(#)common.c 8.5 (Berkeley) 4/28/95";
*/
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#endif
#include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */
__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/stat.h>

View File

@ -31,10 +31,8 @@
* ------+---------+---------+---------+---------+---------+---------+---------*
*/
#ifndef lint
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */
__FBSDID("$FreeBSD$");
/*
* ctlinfo - This collection of routines will know everything there is to

View File

@ -64,7 +64,7 @@ struct cjobinfo {
struct cjprivate *cji_priv;
};
#include <sys/cdefs.h>
#include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */
__BEGIN_DECLS
void ctl_freeinf(struct cjobinfo *_cjinf);

View File

@ -31,13 +31,11 @@
* SUCH DAMAGE.
*/
#ifndef lint
/*
#if 0
static char sccsid[] = "@(#)displayq.c 8.4 (Berkeley) 4/28/95";
*/
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#endif
#include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */
__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/stat.h>

View File

@ -253,7 +253,7 @@ typedef enum { TR_SENDING, TR_RECVING, TR_PRINTING } tr_sendrecv;
#define CMD_SHOWQ_LONG '\4'
#define CMD_RMJOB '\5'
#include <sys/cdefs.h>
#include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */
__BEGIN_DECLS
struct dirent;

View File

@ -32,10 +32,8 @@
* ------+---------+---------+---------+---------+---------+---------+---------*
*/
#ifndef lint
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */
__FBSDID("$FreeBSD$");
/*
* movejobs.c - The lpc commands which move jobs around.

View File

@ -84,7 +84,8 @@ STAILQ_HEAD(jobspec_hdr, jobspec);
#define SCQ_JSORDER 0x0001 /* follow the user-specified order */
#define SCQ_QORDER 0x0002 /* the order of jobs in the queue */
#include <sys/cdefs.h>
#include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */
__BEGIN_DECLS
struct jobqueue;

View File

@ -38,10 +38,8 @@
* From: @(#)common.c 8.5 (Berkeley) 4/28/95
*/
#ifndef lint
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */
__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/socket.h>

View File

@ -38,10 +38,8 @@
* From: @(#)common.c 8.5 (Berkeley) 4/28/95
*/
#ifndef lint
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */
__FBSDID("$FreeBSD$");
#include <errno.h>
#include <stdio.h>

View File

@ -29,8 +29,8 @@
static const char copyright[] =
"Copyright (C) 1997, Massachusetts Institute of Technology\r\n";
static const char rcsid[] =
"$FreeBSD$";
#include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */
__FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <sys/stat.h>

View File

@ -31,13 +31,11 @@
* SUCH DAMAGE.
*/
#ifndef lint
#if 0
static char sccsid[] = "@(#)rmjob.c 8.2 (Berkeley) 4/28/95";
#endif
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */
__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/uio.h>

View File

@ -31,14 +31,11 @@
* SUCH DAMAGE.
*/
#ifndef lint
#if 0
static char sccsid[] = "@(#)startdaemon.c 8.2 (Berkeley) 4/17/94";
#endif
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */
__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/socket.h>