diff options
author | 2006-02-18 21:54:17 +0000 | |
---|---|---|
committer | 2006-02-18 21:54:17 +0000 | |
commit | 22740e74dad68a6a1e27de4259a308f3859cc476 (patch) | |
tree | 87524d03fcd894218d2f8963826a16b6b6044408 /lib/libc/time/scheck.c | |
parent | Update to tzdata2006a with the US DST changes commented out for now. (diff) | |
download | wireguard-openbsd-22740e74dad68a6a1e27de4259a308f3859cc476.tar.xz wireguard-openbsd-22740e74dad68a6a1e27de4259a308f3859cc476.zip |
Update to tzcode2006a; primarily just cast and const fixes.
Diffstat (limited to 'lib/libc/time/scheck.c')
-rw-r--r-- | lib/libc/time/scheck.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/libc/time/scheck.c b/lib/libc/time/scheck.c index f9daef7a4a7..c5e00e38f51 100644 --- a/lib/libc/time/scheck.c +++ b/lib/libc/time/scheck.c @@ -1,27 +1,26 @@ -/* $OpenBSD: scheck.c,v 1.8 2005/08/08 08:05:38 espie Exp $ */ +/* $OpenBSD: scheck.c,v 1.9 2006/02/18 21:54:17 millert Exp $ */ /* ** This file is in the public domain, so clarified as of -** Feb 14, 2003 by Arthur David Olson (arthur_david_olson@nih.gov). +** Feb 14, 2003 by Arthur David Olson. */ /*LINTLIBRARY*/ #include "private.h" -char * +const char * scheck(string, format) const char * const string; -char * const format; +const char * const format; { register char * fbuf; register const char * fp; register char * tp; register int c; - register char * result; + register const char * result; char dummy; - static char nada; - result = &nada; + result = ""; if (string == NULL || format == NULL) return result; fbuf = imalloc((int) (2 * strlen(format) + 4)); |