[GRASS-SVN] r58877 - grass/trunk/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Feb 4 02:11:05 PST 2014


Author: glynn
Date: 2014-02-04 02:11:04 -0800 (Tue, 04 Feb 2014)
New Revision: 58877

Modified:
   grass/trunk/lib/gis/mkstemp.c
Log:
Add parentheses to avoid warning


Modified: grass/trunk/lib/gis/mkstemp.c
===================================================================
--- grass/trunk/lib/gis/mkstemp.c	2014-02-04 08:49:51 UTC (rev 58876)
+++ grass/trunk/lib/gis/mkstemp.c	2014-02-04 10:11:04 UTC (rev 58877)
@@ -161,7 +161,7 @@
 
 FILE *G_mkstemp_fp(char *template, int flags, int mode)
 {
-    const char *fmode = (flags & O_ACCMODE == O_RDWR)
+    const char *fmode = ((flags & O_ACCMODE) == O_RDWR)
 	? ((flags & O_APPEND) ? "a+" : "w+")
 	: ((flags & O_APPEND) ? "a" : "w");
     int fd = G_mkstemp(template, flags, mode);



More information about the grass-commit mailing list