Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/dump Use more static.
details: https://anonhg.NetBSD.org/src/rev/16f7a5ea1bc0
branches: trunk
changeset: 783974:16f7a5ea1bc0
user: dholland <dholland%NetBSD.org@localhost>
date: Sun Jan 13 23:07:16 2013 +0000
description:
Use more static.
diffstat:
sbin/dump/optr.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (61 lines):
diff -r 1533fb7d1608 -r 16f7a5ea1bc0 sbin/dump/optr.c
--- a/sbin/dump/optr.c Sun Jan 13 22:59:31 2013 +0000
+++ b/sbin/dump/optr.c Sun Jan 13 23:07:16 2013 +0000
@@ -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 @@
#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 @@
* 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 @@
* we don't actually do it
*/
-struct fstab *
+static struct fstab *
allocfsent(const struct fstab *fs)
{
struct fstab *new;
@@ -501,7 +501,7 @@
}
}
-int
+static int
datesort(const void *a1, const void *a2)
{
const struct dumpdates *d1 = *(const struct dumpdates *const *)a1;
Home |
Main Index |
Thread Index |
Old Index