[Midnightbsd-cvs] src [11529] make static

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Jul 7 16:28:51 EDT 2018


Revision: 11529
          http://svnweb.midnightbsd.org/src/?rev=11529
Author:   laffer1
Date:     2018-07-07 16:28:50 -0400 (Sat, 07 Jul 2018)
Log Message:
-----------
make static

Modified Paths:
--------------
    trunk/usr.bin/id/Makefile
    trunk/usr.bin/id/groups.1
    trunk/usr.bin/id/id.1
    trunk/usr.bin/id/id.c

Property Changed:
----------------
    trunk/usr.bin/id/groups.1
    trunk/usr.bin/id/id.1

Modified: trunk/usr.bin/id/Makefile
===================================================================
--- trunk/usr.bin/id/Makefile	2018-07-07 20:28:35 UTC (rev 11528)
+++ trunk/usr.bin/id/Makefile	2018-07-07 20:28:50 UTC (rev 11529)
@@ -1,5 +1,6 @@
+# $MidnightBSD$
 #	@(#)Makefile	8.1 (Berkeley) 6/6/93
-# $MidnightBSD$
+# $FreeBSD: stable/10/usr.bin/id/Makefile 201386 2010-01-02 10:27:05Z ed $
 
 .include <bsd.own.mk>
 

Modified: trunk/usr.bin/id/groups.1
===================================================================
--- trunk/usr.bin/id/groups.1	2018-07-07 20:28:35 UTC (rev 11528)
+++ trunk/usr.bin/id/groups.1	2018-07-07 20:28:50 UTC (rev 11529)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
 .\" Copyright (c) 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
 .\"
@@ -26,7 +27,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"	@(#)groups.1	8.1 (Berkeley) 6/6/93
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/usr.bin/id/groups.1 216370 2010-12-11 08:32:16Z joel $
 .\"
 .Dd June 6, 1993
 .Dt GROUPS 1


Property changes on: trunk/usr.bin/id/groups.1
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/usr.bin/id/id.1
===================================================================
--- trunk/usr.bin/id/id.1	2018-07-07 20:28:35 UTC (rev 11528)
+++ trunk/usr.bin/id/id.1	2018-07-07 20:28:50 UTC (rev 11529)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
 .\" Copyright (c) 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
 .\"
@@ -29,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"	@(#)id.1	8.1 (Berkeley) 6/6/93
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/usr.bin/id/id.1 219304 2011-03-05 12:40:35Z trasz $
 .\"
 .Dd March 5, 2011
 .Dt ID 1


Property changes on: trunk/usr.bin/id/id.1
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/usr.bin/id/id.c
===================================================================
--- trunk/usr.bin/id/id.c	2018-07-07 20:28:35 UTC (rev 11528)
+++ trunk/usr.bin/id/id.c	2018-07-07 20:28:50 UTC (rev 11529)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
 /*-
  * Copyright (c) 1991, 1993
  *	The Regents of the University of California.  All rights reserved.
@@ -39,7 +40,7 @@
 #endif
 #endif /* not lint */
 #include <sys/cdefs.h>
-__MBSDID("$MidnightBSD$");
+__FBSDID("$FreeBSD: stable/10/usr.bin/id/id.c 227203 2011-11-06 09:09:45Z ed $");
 
 #include <sys/param.h>
 #include <sys/mac.h>
@@ -57,16 +58,18 @@
 #include <string.h>
 #include <unistd.h>
 
-void	id_print(struct passwd *, int, int, int);
-void	pline(struct passwd *);
-void	pretty(struct passwd *);
-void	auditid(void);
-void	group(struct passwd *, int);
-void	maclabel(void);
-void	usage(void);
-struct passwd *who(char *);
+static void	id_print(struct passwd *, int, int, int);
+static void	pline(struct passwd *);
+static void	pretty(struct passwd *);
+#ifdef USE_BSM_AUDIT
+static void	auditid(void);
+#endif
+static void	group(struct passwd *, int);
+static void	maclabel(void);
+static void	usage(void);
+static struct passwd *who(char *);
 
-int isgroups, iswhoami;
+static int isgroups, iswhoami;
 
 int
 main(int argc, char *argv[])
@@ -220,7 +223,7 @@
 	exit(0);
 }
 
-void
+static void
 pretty(struct passwd *pw)
 {
 	struct group *gr;
@@ -260,7 +263,7 @@
 	}
 }
 
-void
+static void
 id_print(struct passwd *pw, int use_ggl, int p_euid, int p_egid)
 {
 	struct group *gr;
@@ -324,7 +327,7 @@
 }
 
 #ifdef USE_BSM_AUDIT
-void
+static void
 auditid(void)
 {
 	auditinfo_t auditinfo;
@@ -371,7 +374,7 @@
 }
 #endif
 
-void
+static void
 group(struct passwd *pw, int nflag)
 {
 	struct group *gr;
@@ -411,7 +414,7 @@
 	free(groups);
 }
 
-void
+static void
 maclabel(void)
 {
 	char *string;
@@ -435,7 +438,7 @@
 	free(string);
 }
 
-struct passwd *
+static struct passwd *
 who(char *u)
 {
 	struct passwd *pw;
@@ -455,7 +458,7 @@
 	/* NOTREACHED */
 }
 
-void
+static void
 pline(struct passwd *pw)
 {
 
@@ -471,7 +474,7 @@
 }
 
 
-void
+static void
 usage(void)
 {
 



More information about the Midnightbsd-cvs mailing list