comparison 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
comparison
equal deleted inserted replaced
328:48e0f1f45181 329:6773399539aa
166 166
167 sprintf(temp, "/dev/%s", device_name); 167 sprintf(temp, "/dev/%s", device_name);
168 if (mknod(temp, mode | type, makedev(major, minor)) && errno != EEXIST) 168 if (mknod(temp, mode | type, makedev(major, minor)) && errno != EEXIST)
169 perror_exit("mknod %s failed", temp); 169 perror_exit("mknod %s failed", temp);
170 170
171 if (CFG_MDEV_CONF) chown(temp, uid, gid); 171 // Dear gcc: shut up about ignoring the return value here. If it doesn't
172 // work, what exactly are we supposed to do about it?
173 if (CFG_MDEV_CONF) mode=chown(temp, uid, gid);
172 } 174 }
173 175
174 static int callback(char *path, struct dirtree *node) 176 static int callback(char *path, struct dirtree *node)
175 { 177 {
176 // Entries in /sys/class/block aren't char devices, so skip 'em. (We'll 178 // Entries in /sys/class/block aren't char devices, so skip 'em. (We'll