Skip to content

Commit

Permalink
Use __FBSDID over rcsid[]. Protect copyright[] where needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
obrien authored and obrien committed May 3, 2003
1 parent bc6b9b6 commit 7293a24
Show file tree
Hide file tree
Showing 62 changed files with 169 additions and 242 deletions.
8 changes: 4 additions & 4 deletions usr.sbin/accton/accton.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@
* SUCH DAMAGE.
*/

#if 0
#ifndef lint
static const char copyright[] =
"@(#) Copyright (c) 1988, 1993\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */

#ifndef lint
#if 0
static char sccsid[] = "@(#)accton.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#endif
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/types.h>
#include <err.h>
Expand Down
6 changes: 4 additions & 2 deletions usr.sbin/ancontrol/ancontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@
* THE POSSIBILITY OF SUCH DAMAGE.
*/

#if 0
#ifndef lint
static const char copyright[] = "@(#) Copyright (c) 1997, 1998, 1999\
Bill Paul. All rights reserved.";
static const char rcsid[] =
"$FreeBSD$";
#endif
#endif
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/types.h>
#include <sys/cdefs.h>
Expand Down
8 changes: 4 additions & 4 deletions usr.sbin/arp/arp.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@
* SUCH DAMAGE.
*/

#if 0
#ifndef lint
static char const copyright[] =
"@(#) Copyright (c) 1984, 1993\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */

#ifndef lint
#if 0
static char const sccsid[] = "@(#)from: arp.c 8.2 (Berkeley) 1/2/94";
#endif
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#endif
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

/*
* arp - display, set, and delete arp table entries
Expand Down
6 changes: 2 additions & 4 deletions usr.sbin/boot0cfg/boot0cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef lint
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/param.h>
#include <sys/disklabel.h>
Expand Down
6 changes: 2 additions & 4 deletions usr.sbin/cdcontrol/cdcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@
* Some code style reformatting.
*/

#ifndef lint
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/cdio.h>
#include <sys/cdrio.h>
Expand Down
6 changes: 2 additions & 4 deletions usr.sbin/chkgrp/chkgrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef lint
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <err.h>
#include <ctype.h>
Expand Down
5 changes: 2 additions & 3 deletions usr.sbin/chown/chown.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,17 @@
* SUCH DAMAGE.
*/

#if 0
#ifndef lint
static const char copyright[] =
"@(#) Copyright (c) 1988, 1993, 1994\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */

#ifndef lint
#if 0
static char sccsid[] = "@(#)chown.c 8.8 (Berkeley) 4/4/94";
#endif
#endif /* not lint */

#endif
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

Expand Down
8 changes: 4 additions & 4 deletions usr.sbin/chroot/chroot.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@
* SUCH DAMAGE.
*/

#if 0
#ifndef lint
static const char copyright[] =
"@(#) Copyright (c) 1988, 1993\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */

#ifndef lint
#if 0
static char sccsid[] = "@(#)chroot.c 8.1 (Berkeley) 6/9/93";
#endif
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#endif
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/types.h>

Expand Down
8 changes: 4 additions & 4 deletions usr.sbin/dev_mkdb/dev_mkdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@
* SUCH DAMAGE.
*/

#if 0
#ifndef lint
static const char copyright[] =
"@(#) Copyright (c) 1990, 1993\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */

#ifndef lint
#if 0
static char sccsid[] = "@(#)dev_mkdb.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#endif
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/param.h>
#include <sys/stat.h>
Expand Down
8 changes: 4 additions & 4 deletions usr.sbin/edquota/edquota.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@
* SUCH DAMAGE.
*/

#if 0
#ifndef lint
static const char copyright[] =
"@(#) Copyright (c) 1980, 1990, 1993\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */

#ifndef lint
#if 0
static char sccsid[] = "@(#)edquota.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#endif
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

/*
* Disk quota editor.
Expand Down
6 changes: 2 additions & 4 deletions usr.sbin/fdcontrol/fdcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@
* DAMAGE.
*/

#ifndef lint
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/fdcio.h>
#include <sys/file.h>
Expand Down
6 changes: 2 additions & 4 deletions usr.sbin/kbdcontrol/kbdcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef lint
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <ctype.h>
#include <err.h>
Expand Down
6 changes: 2 additions & 4 deletions usr.sbin/kernbb/kernbb.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@
*
*/

#ifndef lint
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <err.h>
#include <fcntl.h>
Expand Down
6 changes: 2 additions & 4 deletions usr.sbin/lptcontrol/lptcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef lint
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <ctype.h>
#include <err.h>
Expand Down
6 changes: 2 additions & 4 deletions usr.sbin/mixer/mixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@
* ditto for my modifications (John-Mark Gurney, 1997)
*/

#ifndef lint
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <err.h>
#include <fcntl.h>
Expand Down
8 changes: 4 additions & 4 deletions usr.sbin/mtree/compare.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
* SUCH DAMAGE.
*/

#ifndef lint
#if 0
#ifndef lint
static char sccsid[] = "@(#)compare.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#endif
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/param.h>
#include <sys/stat.h>
Expand Down
8 changes: 4 additions & 4 deletions usr.sbin/mtree/create.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
* SUCH DAMAGE.
*/

#ifndef lint
#if 0
#ifndef lint
static char sccsid[] = "@(#)create.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#endif
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/param.h>
#include <sys/stat.h>
Expand Down
4 changes: 2 additions & 2 deletions usr.sbin/mtree/excludes.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
* SUCH DAMAGE.
*/

static const char rcsid[] =
"$FreeBSD$";
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/types.h>
#include <sys/time.h> /* XXX for mtree.h */
Expand Down
8 changes: 4 additions & 4 deletions usr.sbin/mtree/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
* SUCH DAMAGE.
*/

#ifndef lint
#if 0
#ifndef lint
static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
"$FreeBSD$";
#endif /*not lint */
#endif
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/types.h>
#include <sys/stat.h>
Expand Down
8 changes: 4 additions & 4 deletions usr.sbin/mtree/mtree.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@
* SUCH DAMAGE.
*/

#if 0
#ifndef lint
static const char copyright[] =
"@(#) Copyright (c) 1989, 1990, 1993\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */

#ifndef lint
#if 0
static char sccsid[] = "@(#)mtree.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#endif
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/param.h>
#include <sys/stat.h>
Expand Down
8 changes: 4 additions & 4 deletions usr.sbin/mtree/spec.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
* SUCH DAMAGE.
*/

#ifndef lint
#if 0
#ifndef lint
static char sccsid[] = "@(#)spec.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#endif
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/types.h>
#include <sys/stat.h>
Expand Down
8 changes: 4 additions & 4 deletions usr.sbin/mtree/verify.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
* SUCH DAMAGE.
*/

#ifndef lint
#if 0
#ifndef lint
static char sccsid[] = "@(#)verify.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#endif
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/param.h>
#include <sys/stat.h>
Expand Down
6 changes: 2 additions & 4 deletions usr.sbin/newsyslog/newsyslog.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@
* specified number of backup files around.
*/

#ifndef lint
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#define OSF
#ifndef COMPRESS_POSTFIX
Expand Down
Loading

0 comments on commit 7293a24

Please sign in to comment.