From ba544bf0107104b9131b24c8185400c478c031f6 Mon Sep 17 00:00:00 2001 From: wiz Date: Fri, 7 Aug 2009 13:53:54 +0000 Subject: [PATCH] Add missing parenthesis in commented out code. From Henning Petersen in PR 41838. --- usr.bin/window/wwterminfo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/window/wwterminfo.c b/usr.bin/window/wwterminfo.c index de38f13efb3a..0a3900700354 100644 --- a/usr.bin/window/wwterminfo.c +++ b/usr.bin/window/wwterminfo.c @@ -1,4 +1,4 @@ -/* $NetBSD: wwterminfo.c,v 1.5 2003/08/07 11:17:45 agc Exp $ */ +/* $NetBSD: wwterminfo.c,v 1.6 2009/08/07 13:53:54 wiz Exp $ */ /* * Copyright (c) 1982, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)wwterminfo.c 8.1 (Berkeley) 6/6/93"; #else -__RCSID("$NetBSD: wwterminfo.c,v 1.5 2003/08/07 11:17:45 agc Exp $"); +__RCSID("$NetBSD: wwterminfo.c,v 1.6 2009/08/07 13:53:54 wiz Exp $"); #endif #endif /* not lint */ @@ -73,7 +73,7 @@ wwterminfoinit() /* make the directory */ (void) sprintf(wwterminfopath, "%swwinXXXXXX", _PATH_TMP); - if (mkdtemp(wwterminfopath) == NULL) || + if ((mkdtemp(wwterminfopath) == NULL) || chmod(wwterminfopath, 0755) < 0) { wwerrno = WWE_SYS; return -1;