summaryrefslogtreecommitdiffstats
path: root/lib/libpthread
diff options
context:
space:
mode:
authorangelos <angelos@openbsd.org>1997-02-15 04:57:42 +0000
committerangelos <angelos@openbsd.org>1997-02-15 04:57:42 +0000
commitc6e8e8ee2e7652fd067c9c2074959b529702cc1f (patch)
tree09b5e8f1626179306a83ebda11ff64ffd5f99818 /lib/libpthread
parentAdd new style of miniroot building. primarily based on the distrib/miniroot (diff)
downloadwireguard-openbsd-c6e8e8ee2e7652fd067c9c2074959b529702cc1f.tar.xz
wireguard-openbsd-c6e8e8ee2e7652fd067c9c2074959b529702cc1f.zip
Minor change to bypass compilation failure.
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/stdio/tempnam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/stdio/tempnam.c b/lib/libpthread/stdio/tempnam.c
index e9c7e742472..584c8f9442e 100644
--- a/lib/libpthread/stdio/tempnam.c
+++ b/lib/libpthread/stdio/tempnam.c
@@ -33,7 +33,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)tempnam.c 5.1 (Berkeley) 2/22/91";*/
-static char *rcsid = "$Id: tempnam.c,v 1.2 1996/08/26 00:17:28 deraadt Exp $";
+static char *rcsid = "$Id: tempnam.c,v 1.3 1997/02/15 04:57:42 angelos Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@ -56,7 +56,7 @@ tempnam(dir, pfx)
if (!pfx)
pfx = "tmp.";
- if (issetugid() == 0 && f = getenv("TMPDIR")) {
+ if ((issetugid() == 0) && (f = getenv("TMPDIR"))) {
(void)snprintf(name, MAXPATHLEN, "%s%s%sXXXXXX", f,
*(f + strlen(f) - 1) == '/'? "": "/", pfx);
if (f = mktemp(name))