diff options
author | Luis Felipe Strano Moraes <lfelipe@profusion.mobi> | 2012-02-06 14:36:56 -0800 |
---|---|---|
committer | Luis Felipe Strano Moraes <lfelipe@profusion.mobi> | 2012-02-06 14:36:56 -0800 |
commit | b29d74ec2654984b9127f0bb826996d4c2938670 (patch) | |
tree | ea4f97ffe336a48ab0d6cc8097fb4ec8ab20e82f /toys/cp.c | |
parent | ae079d204cac559bacf776f22f8911c1dd828509 (diff) | |
download | toybox-b29d74ec2654984b9127f0bb826996d4c2938670.tar.gz |
Silence really boring compiler warning.
Diffstat (limited to 'toys/cp.c')
-rw-r--r-- | toys/cp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -109,10 +109,10 @@ void cp_file(char *src, char *dst, struct stat *srcst) // Can't do fchmod() etc here because -p works on mkdir, too. if (toys.optflags & FLAG_p) { - int mask = umask(0), ignored; + int mask = umask(0); struct utimbuf ut; - ignored = fchown(fdout,srcst->st_uid, srcst->st_gid); + (void) fchown(fdout,srcst->st_uid, srcst->st_gid); ut.actime = srcst->st_atime; ut.modtime = srcst->st_mtime; utime(dst, &ut); |