diff options
author | 2015-10-24 18:13:18 +0000 | |
---|---|---|
committer | 2015-10-24 18:13:18 +0000 | |
commit | dbd4bd2915052b1ba472fcf66df8233e6efa0ed7 (patch) | |
tree | d8bed2abbf951305123889f19565d9df2cd509d5 /lib/libc/time/strftime.c | |
parent | Cast ctype functions' arguments to unsigned char. (diff) | |
download | wireguard-openbsd-dbd4bd2915052b1ba472fcf66df8233e6efa0ed7.tar.xz wireguard-openbsd-dbd4bd2915052b1ba472fcf66df8233e6efa0ed7.zip |
Move #includes from private.h to the .c files that need them, getting rid of
several. Switch from FILENAME_MAX to PATH_MAX (it's for open(), not fopen()).
ok deraadt@ tedu@ krw@
Diffstat (limited to 'lib/libc/time/strftime.c')
-rw-r--r-- | lib/libc/time/strftime.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/time/strftime.c b/lib/libc/time/strftime.c index 84c4c18e38f..aea2e2f8e6b 100644 --- a/lib/libc/time/strftime.c +++ b/lib/libc/time/strftime.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strftime.c,v 1.27 2015/09/12 14:35:40 guenther Exp $ */ +/* $OpenBSD: strftime.c,v 1.28 2015/10/24 18:13:18 guenther Exp $ */ /* ** Copyright (c) 1989, 1993 ** The Regents of the University of California. All rights reserved. @@ -30,6 +30,7 @@ #include <fcntl.h> #include <locale.h> +#include <stdio.h> #include "private.h" #include "tzfile.h" @@ -612,7 +613,7 @@ _loc(void) char * p; const char ** ap; const char * plim; - char filename[FILENAME_MAX]; + char filename[PATH_MAX]; struct stat st; size_t namesize; size_t bufsize; |