summaryrefslogtreecommitdiffstats
path: root/usr.bin/login
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2001-12-10 21:13:08 +0000
committerdwmalone <dwmalone@FreeBSD.org>2001-12-10 21:13:08 +0000
commitd9613ea3837925885145ecab86d9945be73cb303 (patch)
tree1442452df82ec8f2c59ad6b71923e5a41a2c26fa /usr.bin/login
parent41ac2526112f730a179b27f89b169ad414cd947b (diff)
downloadFreeBSD-src-d9613ea3837925885145ecab86d9945be73cb303.zip
FreeBSD-src-d9613ea3837925885145ecab86d9945be73cb303.tar.gz
Style improvements recommended by Bruce as a follow up to some
of the recent WARNS commits. The idea is: 1) FreeBSD id tags should follow vendor tags. 2) Vendor tags should not be compiled (though copyrights probably should). 3) There should be no blank line between including cdefs and __FBSDIF.
Diffstat (limited to 'usr.bin/login')
-rw-r--r--usr.bin/login/login.c11
-rw-r--r--usr.bin/login/login_access.c11
-rw-r--r--usr.bin/login/login_fbtab.c1
3 files changed, 12 insertions, 11 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c
index 4f24d37..59707b5 100644
--- a/usr.bin/login/login.c
+++ b/usr.bin/login/login.c
@@ -31,13 +31,14 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
-
-__FBSDID("$FreeBSD$");
-
+#if 0
#ifndef lint
-static const char sccsid[] = "@(#)login.c 8.4 (Berkeley) 4/2/94";
+static char sccsid[] = "@(#)login.c 8.4 (Berkeley) 4/2/94";
#endif
+#endif
+
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
/*
* login [ name ]
diff --git a/usr.bin/login/login_access.c b/usr.bin/login/login_access.c
index c058bbe..b8cdf05 100644
--- a/usr.bin/login/login_access.c
+++ b/usr.bin/login/login_access.c
@@ -7,14 +7,15 @@
* Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.
*/
-#include <sys/cdefs.h>
-
-__FBSDID("$FreeBSD$");
-
#ifdef LOGIN_ACCESS
+#if 0
#ifndef lint
-static const char sccsid[] = "%Z% %M% %I% %E% %U%";
+static char sccsid[] = "%Z% %M% %I% %E% %U%";
#endif
+#endif
+
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <ctype.h>
diff --git a/usr.bin/login/login_fbtab.c b/usr.bin/login/login_fbtab.c
index 599e3a6..a62c6ef 100644
--- a/usr.bin/login/login_fbtab.c
+++ b/usr.bin/login/login_fbtab.c
@@ -59,7 +59,6 @@
*/
#include <sys/cdefs.h>
-
__FBSDID("$FreeBSD$");
#include <sys/types.h>
OpenPOWER on IntegriCloud