[Midnightbsd-cvs] src [11511] trunk/usr.bin/lam/lam.c: make things static

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Jul 7 15:16:18 EDT 2018


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

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

Property Changed:
----------------
    trunk/usr.bin/lam/lam.1

Modified: trunk/usr.bin/lam/Makefile
===================================================================
--- trunk/usr.bin/lam/Makefile	2018-07-07 19:16:00 UTC (rev 11510)
+++ trunk/usr.bin/lam/Makefile	2018-07-07 19:16:18 UTC (rev 11511)
@@ -1,5 +1,6 @@
+# $MidnightBSD$
 #	@(#)Makefile	8.1 (Berkeley) 6/6/93
-# $MidnightBSD$
+# $FreeBSD: stable/10/usr.bin/lam/Makefile 90415 2002-02-08 22:31:43Z markm $
 
 PROG=	lam
 

Modified: trunk/usr.bin/lam/lam.1
===================================================================
--- trunk/usr.bin/lam/lam.1	2018-07-07 19:16:00 UTC (rev 11510)
+++ trunk/usr.bin/lam/lam.1	2018-07-07 19:16:18 UTC (rev 11511)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
 .\" Copyright (c) 1993
 .\"	The Regents of the University of California.  All rights reserved.
 .\"
@@ -26,9 +27,9 @@
 .\" SUCH DAMAGE.
 .\"
 .\"	@(#)lam.1	8.1 (Berkeley) 6/6/93
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/usr.bin/lam/lam.1 281574 2015-04-16 00:34:41Z allanjude $
 .\"
-.Dd August 12, 2004
+.Dd April 7, 2015
 .Dt LAM 1
 .Os
 .Sh NAME
@@ -136,6 +137,8 @@
 .Nm
 utility first appeared in
 .Bx 4.2 .
+.Sh AUTHORS
+.An John A. Kunze
 .Sh BUGS
 The
 .Nm


Property changes on: trunk/usr.bin/lam/lam.1
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/usr.bin/lam/lam.c
===================================================================
--- trunk/usr.bin/lam/lam.c	2018-07-07 19:16:00 UTC (rev 11510)
+++ trunk/usr.bin/lam/lam.c	2018-07-07 19:16:18 UTC (rev 11511)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
 /*-
  * Copyright (c) 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/lam/lam.c 227240 2011-11-06 18:49:41Z ed $");
 
 /*
  *	lam - laminate files
@@ -55,7 +56,7 @@
 #define	MAXOFILES	20
 #define	BIGBUFSIZ	5 * BUFSIZ
 
-struct	openfile {		/* open file structure */
+static struct openfile {	/* open file structure */
 	FILE	*fp;		/* file pointer */
 	short	eof;		/* eof flag */
 	short	pad;		/* pad flag for missing columns */
@@ -64,10 +65,10 @@
 	const char *format;	/* printf(3) style string spec. */
 }	input[MAXOFILES];
 
-int	morefiles;		/* set by getargs(), changed by gatherline() */
-int	nofinalnl;		/* normally append \n to each output line */
-char	line[BIGBUFSIZ];
-char	*linep;
+static int	morefiles;	/* set by getargs(), changed by gatherline() */
+static int	nofinalnl;	/* normally append \n to each output line */
+static char	line[BIGBUFSIZ];
+static char	*linep;
 
 static char    *gatherline(struct openfile *);
 static void	getargs(char *[]);



More information about the Midnightbsd-cvs mailing list