diff options
author | Rob Landley <rob@landley.net> | 2008-12-14 01:08:37 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2008-12-14 01:08:37 -0600 |
commit | 7471b5618cb5bee9cc5daaf26cc5d69770b4cb17 (patch) | |
tree | e1b0d989e2a0994c807a08a4ef1367705609635b /toys/mdev.c | |
parent | dcb52f7c9a01a0609a7d4f00256f6807ae49320b (diff) | |
download | toybox-7471b5618cb5bee9cc5daaf26cc5d69770b4cb17.tar.gz |
Shut up some new aggressively stupid warnings gcc 4.3 produces.
Diffstat (limited to 'toys/mdev.c')
-rw-r--r-- | toys/mdev.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/toys/mdev.c b/toys/mdev.c index 63c50823..39f66356 100644 --- a/toys/mdev.c +++ b/toys/mdev.c @@ -168,7 +168,9 @@ found_device: 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) |