summaryrefslogtreecommitdiffstats
path: root/hack/hack.pager.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-08-12 07:28:40 +0000
committerdholland <dholland@NetBSD.org>2009-08-12 07:28:40 +0000
commit8b1c71ee649fb41155da92995044e451c39ea700 (patch)
tree24e74c8d453828689bfeac45e6162912f3c42d76 /hack/hack.pager.c
parent31f496067cd42ce5ff71163efa5921ab6522e4aa (diff)
downloadbsdgames-darwin-8b1c71ee649fb41155da92995044e451c39ea700.tar.gz
bsdgames-darwin-8b1c71ee649fb41155da92995044e451c39ea700.tar.zst
bsdgames-darwin-8b1c71ee649fb41155da92995044e451c39ea700.zip
sprinkle static
Diffstat (limited to 'hack/hack.pager.c')
-rw-r--r--hack/hack.pager.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/hack/hack.pager.c b/hack/hack.pager.c
index ee474a1e..b72cb99e 100644
--- a/hack/hack.pager.c
+++ b/hack/hack.pager.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.pager.c,v 1.12 2009/06/07 18:30:39 dholland Exp $ */
+/* $NetBSD: hack.pager.c,v 1.13 2009/08/12 07:28:41 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.pager.c,v 1.12 2009/06/07 18:30:39 dholland Exp $");
+__RCSID("$NetBSD: hack.pager.c,v 1.13 2009/08/12 07:28:41 dholland Exp $");
#endif /* not lint */
/* This file contains the command routine dowhatis() and a pager. */
@@ -79,6 +79,11 @@ __RCSID("$NetBSD: hack.pager.c,v 1.12 2009/06/07 18:30:39 dholland Exp $");
#include "hack.h"
#include "extern.h"
+static void intruph(int);
+static void page_more(FILE *, int);
+static int page_file(const char *, boolean);
+static int child(int);
+
int
dowhatis(void)
{
@@ -129,7 +134,7 @@ dowhatis(void)
/* make the paging of a file interruptible */
static int got_intrup;
-void
+static void
intruph(int n __unused)
{
got_intrup++;
@@ -137,7 +142,7 @@ intruph(int n __unused)
/* simple pager, also used from dohelp() */
/* strip: nr of chars to be stripped from each line (0 or 1) */
-void
+static void
page_more(FILE *fp, int strip)
{
char *bufr, *ep;
@@ -361,7 +366,7 @@ dohelp(void)
}
/* return: 0 - cannot open fnam; 1 - otherwise */
-int
+static int
page_file(const char *fnam, boolean silent)
{
#ifdef DEF_PAGER /* this implies that UNIX is defined */
@@ -452,7 +457,7 @@ union wait { /* used only for the cast (union wait *) 0 */
#endif /* BSD */
#endif /* NOWAITINCLUDE */
-int
+static int
child(int wt)
{
int status;