From 8b1c71ee649fb41155da92995044e451c39ea700 Mon Sep 17 00:00:00 2001 From: dholland Date: Wed, 12 Aug 2009 07:28:40 +0000 Subject: sprinkle static --- hack/hack.unix.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'hack/hack.unix.c') diff --git a/hack/hack.unix.c b/hack/hack.unix.c index 708e9f79..77db96d7 100644 --- a/hack/hack.unix.c +++ b/hack/hack.unix.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.unix.c,v 1.13 2009/06/29 23:05:33 dholland Exp $ */ +/* $NetBSD: hack.unix.c,v 1.14 2009/08/12 07:28:41 dholland Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include #ifndef lint -__RCSID("$NetBSD: hack.unix.c,v 1.13 2009/06/29 23:05:33 dholland Exp $"); +__RCSID("$NetBSD: hack.unix.c,v 1.14 2009/08/12 07:28:41 dholland Exp $"); #endif /* not lint */ /* This file collects some Unix dependencies; hack.pager.c contains some more */ @@ -95,6 +95,9 @@ __RCSID("$NetBSD: hack.unix.c,v 1.13 2009/06/29 23:05:33 dholland Exp $"); extern int locknum; +static struct tm *getlt(void); +static int veryold(int); + void setrandom(void) @@ -102,7 +105,7 @@ setrandom(void) (void) srandom((int) time((time_t *) 0)); } -struct tm * +static struct tm * getlt(void) { time_t date; @@ -159,7 +162,7 @@ midnight(void) return (getlt()->tm_hour == 0); } -struct stat buf, hbuf; +static struct stat buf, hbuf; void gethdate(char *name) @@ -224,7 +227,7 @@ uptodate(int fd) } /* see whether we should throw away this xlock file */ -int +static int veryold(int fd) { int i; -- cgit v1.2.3-56-ge451