Module Name: src
Committed By: wiz
Date: Fri Aug 7 13:53:54 UTC 2009
Modified Files:
src/usr.bin/window: wwterminfo.c
Log Message:
Add missing parenthesis in commented out code.
>From Henning Petersen in PR 41838.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/usr.bin/window/wwterminfo.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/window/wwterminfo.c
diff -u src/usr.bin/window/wwterminfo.c:1.5 src/usr.bin/window/wwterminfo.c:1.6
--- src/usr.bin/window/wwterminfo.c:1.5 Thu Aug 7 11:17:45 2003
+++ src/usr.bin/window/wwterminfo.c Fri Aug 7 13:53:54 2009
@@ -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 @@
/* 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;