summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/mktemp.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2014-10-31 15:54:14 +0000
committermillert <millert@openbsd.org>2014-10-31 15:54:14 +0000
commitd872c5a823590a650e9683a91c5ef5056599868c (patch)
tree53493f43533f74806fe7e2ebeedc38fad84cfd21 /lib/libc/stdio/mktemp.c
parentRemove an outdated comment re EDH vs DHE - DHE is now used consistently and (diff)
downloadwireguard-openbsd-d872c5a823590a650e9683a91c5ef5056599868c.tar.xz
wireguard-openbsd-d872c5a823590a650e9683a91c5ef5056599868c.zip
Use "const char tempchars[]" instead of "const char *tempchars".
Since tempchars is never reassigned there's no need to indirect through a pointer. Still getting used to this newfangled C89.
Diffstat (limited to 'lib/libc/stdio/mktemp.c')
-rw-r--r--lib/libc/stdio/mktemp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/mktemp.c b/lib/libc/stdio/mktemp.c
index 2a17e522f03..956608c151d 100644
--- a/lib/libc/stdio/mktemp.c
+++ b/lib/libc/stdio/mktemp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mktemp.c,v 1.34 2014/08/31 02:21:18 guenther Exp $ */
+/* $OpenBSD: mktemp.c,v 1.35 2014/10/31 15:54:14 millert Exp $ */
/*
* Copyright (c) 1996-1998, 2008 Theo de Raadt
* Copyright (c) 1997, 2008-2009 Todd C. Miller
@@ -45,7 +45,7 @@ static int
mktemp_internal(char *path, int slen, int mode, int flags)
{
char *start, *cp, *ep;
- const char *tempchars = TEMPCHARS;
+ const char tempchars[] = TEMPCHARS;
unsigned int tries;
struct stat sb;
size_t len;