[Midnightbsd-cvs] src [11369] trunk/libexec/comsat/comsat.c: fix build
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri Jul 6 09:51:35 EDT 2018
Revision: 11369
http://svnweb.midnightbsd.org/src/?rev=11369
Author: laffer1
Date: 2018-07-06 09:51:35 -0400 (Fri, 06 Jul 2018)
Log Message:
-----------
fix build
Modified Paths:
--------------
trunk/libexec/comsat/Makefile
trunk/libexec/comsat/comsat.8
trunk/libexec/comsat/comsat.c
Property Changed:
----------------
trunk/libexec/comsat/comsat.8
Modified: trunk/libexec/comsat/Makefile
===================================================================
--- trunk/libexec/comsat/Makefile 2018-07-06 12:52:43 UTC (rev 11368)
+++ trunk/libexec/comsat/Makefile 2018-07-06 13:51:35 UTC (rev 11369)
@@ -1,6 +1,6 @@
+# $MidnightBSD$
# @(#)Makefile 8.1 (Berkeley) 6/4/93
-# $FreeBSD: src/libexec/comsat/Makefile,v 1.8 2001/03/26 14:22:03 ru Exp $
-# $MidnightBSD$
+# $FreeBSD: stable/10/libexec/comsat/Makefile 74814 2001-03-26 14:22:12Z ru $
PROG= comsat
MAN= comsat.8
Modified: trunk/libexec/comsat/comsat.8
===================================================================
--- trunk/libexec/comsat/comsat.8 2018-07-06 12:52:43 UTC (rev 11368)
+++ trunk/libexec/comsat/comsat.8 2018-07-06 13:51:35 UTC (rev 11369)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -9,11 +10,7 @@
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
-.\" 3. All advertising materials mentioning features or use of this software
-.\" must display the following acknowledgement:
-.\" This product includes software developed by the University of
-.\" California, Berkeley and its contributors.
-.\" 4. Neither the name of the University nor the names of its contributors
+.\" 3. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
@@ -30,8 +27,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)comsat.8 8.1 (Berkeley) 6/4/93
-.\" $FreeBSD: src/libexec/comsat/comsat.8,v 1.14 2005/02/13 23:45:48 ru Exp $
-.\" $MidnightBSD: src/libexec/comsat/comsat.8,v 1.2 2012/04/11 00:46:54 laffer1 Exp $
+.\" $FreeBSD: stable/10/libexec/comsat/comsat.8 262435 2014-02-24 08:21:49Z brueffer $
.\"
.Dd January 21, 2010
.Dt COMSAT 8
Property changes on: trunk/libexec/comsat/comsat.8
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/libexec/comsat/comsat.c
===================================================================
--- trunk/libexec/comsat/comsat.c 2018-07-06 12:52:43 UTC (rev 11368)
+++ trunk/libexec/comsat/comsat.c 2018-07-06 13:51:35 UTC (rev 11369)
@@ -1,4 +1,4 @@
-/* $MidnightBSD: src/libexec/comsat/comsat.c,v 1.2 2012/04/11 00:46:54 laffer1 Exp $ */
+/* $MidnightBSD$ */
/*
* Copyright (c) 1980, 1993
* The Regents of the University of California. All rights reserved.
@@ -11,11 +11,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -43,7 +39,7 @@
static char sccsid[] = "@(#)comsat.c 8.1 (Berkeley) 6/4/93";
#endif
static const char rcsid[] =
- "$FreeBSD: src/libexec/comsat/comsat.c,v 1.17 2005/02/14 17:42:56 stefanf Exp $";
+ "$FreeBSD: stable/10/libexec/comsat/comsat.c 262435 2014-02-24 08:21:49Z brueffer $";
#endif /* not lint */
#include <sys/param.h>
@@ -69,17 +65,17 @@
#include <unistd.h>
#include <utmpx.h>
-int debug = 0;
+static int debug = 0;
#define dsyslog if (debug) syslog
#define MAXIDLE 120
-char hostname[MAXHOSTNAMELEN];
+static char hostname[MAXHOSTNAMELEN];
-void jkfprintf(FILE *, char[], char[], off_t);
-void mailfor(char *);
-void notify(struct utmpx *, char[], off_t, int);
-void reapchildren(int);
+static void jkfprintf(FILE *, char[], char[], off_t);
+static void mailfor(char *);
+static void notify(struct utmpx *, char[], off_t, int);
+static void reapchildren(int);
int
main(int argc __unused, char *argv[] __unused)
@@ -116,13 +112,13 @@
}
}
-void
+static void
reapchildren(int signo __unused)
{
while (wait3(NULL, WNOHANG, NULL) > 0);
}
-void
+static void
mailfor(char *name)
{
struct utmpx *utp;
@@ -158,7 +154,7 @@
static const char *cr;
-void
+static void
notify(struct utmpx *utp, char file[], off_t offset, int folder)
{
FILE *tp;
@@ -220,7 +216,7 @@
_exit(0);
}
-void
+static void
jkfprintf(FILE *tp, char user[], char file[], off_t offset)
{
unsigned char *cp, ch;
More information about the Midnightbsd-cvs
mailing list