diff toys/mdev.c @ 329:6773399539aa

Shut up some new aggressively stupid warnings gcc 4.3 produces.
author Rob Landley <rob@landley.net>
date Sun, 14 Dec 2008 01:08:37 -0600
parents b4077be6c746
children b8c8b4827e97
line wrap: on
line diff
--- a/toys/mdev.c	Mon Dec 08 00:16:07 2008 -0600
+++ b/toys/mdev.c	Sun Dec 14 01:08:37 2008 -0600
@@ -168,7 +168,9 @@
 	if (mknod(temp, mode | type, makedev(major, minor)) && errno != EEXIST)
 		perror_exit("mknod %s failed", temp);
 
-	if (CFG_MDEV_CONF) chown(temp, uid, gid);
+	// Dear gcc: shut up about ignoring the return value here.  If it doesn't
+	// work, what exactly are we supposed to do about it?
+	if (CFG_MDEV_CONF) mode=chown(temp, uid, gid);
 }
 
 static int callback(char *path, struct dirtree *node)