summaryrefslogtreecommitdiffstats
path: root/hack/hack.termcap.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.termcap.c
parent31f496067cd42ce5ff71163efa5921ab6522e4aa (diff)
downloadbsdgames-darwin-8b1c71ee649fb41155da92995044e451c39ea700.tar.gz
bsdgames-darwin-8b1c71ee649fb41155da92995044e451c39ea700.tar.zst
bsdgames-darwin-8b1c71ee649fb41155da92995044e451c39ea700.zip
sprinkle static
Diffstat (limited to 'hack/hack.termcap.c')
-rw-r--r--hack/hack.termcap.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/hack/hack.termcap.c b/hack/hack.termcap.c
index 5d847dce..6e7e9662 100644
--- a/hack/hack.termcap.c
+++ b/hack/hack.termcap.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.termcap.c,v 1.17 2009/06/07 18:30:39 dholland Exp $ */
+/* $NetBSD: hack.termcap.c,v 1.18 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.termcap.c,v 1.17 2009/06/07 18:30:39 dholland Exp $");
+__RCSID("$NetBSD: hack.termcap.c,v 1.18 2009/08/12 07:28:41 dholland Exp $");
#endif /* not lint */
#include <string.h>
@@ -82,6 +82,11 @@ static int SG;
char *CD; /* tested in pri.c: docorner() */
int CO, LI; /* used in pri.c and whatis.c */
+static void nocmov(int, int);
+static void cmov(int, int);
+static int xputc(int);
+static void xputs(const char *);
+
void
startup(void)
{
@@ -176,7 +181,7 @@ curs(int x, int y)
cmov(x, y);
}
-void
+static void
nocmov(int x, int y)
{
if (cury > y) {
@@ -224,7 +229,7 @@ nocmov(int x, int y)
}
}
-void
+static void
cmov(int x, int y)
{
char buf[256];
@@ -236,13 +241,13 @@ cmov(int x, int y)
}
}
-int
+static int
xputc(int c)
{
return (fputc(c, stdout));
}
-void
+static void
xputs(const char *s)
{
tputs(s, 1, xputc);