From d872c5a823590a650e9683a91c5ef5056599868c Mon Sep 17 00:00:00 2001 From: millert Date: Fri, 31 Oct 2014 15:54:14 +0000 Subject: 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. --- lib/libc/stdio/mktemp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/stdio') 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; -- cgit v1.2.3-59-g8ed1b