Module Name: src
Committed By: dholland
Date: Sun Jan 13 23:07:16 UTC 2013
Modified Files:
src/sbin/dump: optr.c
Log Message:
Use more static.
To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sbin/dump/optr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/dump/optr.c
diff -u src/sbin/dump/optr.c:1.39 src/sbin/dump/optr.c:1.40
--- src/sbin/dump/optr.c:1.39 Sun Jan 13 22:53:01 2013
+++ src/sbin/dump/optr.c Sun Jan 13 23:07:16 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: optr.c,v 1.39 2013/01/13 22:53:01 dholland Exp $ */
+/* $NetBSD: optr.c,v 1.40 2013/01/13 23:07:16 dholland Exp $ */
/*-
* Copyright (c) 1980, 1988, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)optr.c 8.2 (Berkeley) 1/6/94";
#else
-__RCSID("$NetBSD: optr.c,v 1.39 2013/01/13 22:53:01 dholland Exp $");
+__RCSID("$NetBSD: optr.c,v 1.40 2013/01/13 23:07:16 dholland Exp $");
#endif
#endif /* not lint */
@@ -63,12 +63,12 @@ __RCSID("$NetBSD: optr.c,v 1.39 2013/01/
#include "dump.h"
#include "pathnames.h"
-void alarmcatch(int);
-struct fstab *allocfsent(const struct fstab *);
-int datesort(const void *, const void *);
extern char *time_string;
extern char default_time_string[];
+static void alarmcatch(int);
+static struct fstab *allocfsent(const struct fstab *);
+static int datesort(const void *, const void *);
static void do_timestamp(time_t, const char *);
/*
@@ -144,7 +144,7 @@ char lastmsg[200];
* Alert the console operator, and enable the alarm clock to
* sleep for 2 minutes in case nobody comes to satisfy dump
*/
-void
+static void
alarmcatch(int dummy __unused)
{
@@ -318,7 +318,7 @@ quit(const char *fmt, ...)
* we don't actually do it
*/
-struct fstab *
+static struct fstab *
allocfsent(const struct fstab *fs)
{
struct fstab *new;
@@ -501,7 +501,7 @@ lastdump(char arg)
}
}
-int
+static int
datesort(const void *a1, const void *a2)
{
const struct dumpdates *d1 = *(const struct dumpdates *const *)a1;