Mercurial > hg > toybox
diff toys/cp.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 | 2134fa02ec00 |
children | e134aebe79c1 |
line wrap: on
line diff
--- a/toys/cp.c Mon Dec 08 00:16:07 2008 -0600 +++ b/toys/cp.c Sun Dec 14 01:08:37 2008 -0600 @@ -109,10 +109,10 @@ // Can't do fchmod() etc here because -p works on mkdir, too. if (toys.optflags & FLAG_p) { - int mask = umask(0); + int mask = umask(0), ignored; struct utimbuf ut; - fchown(fdout,srcst->st_uid, srcst->st_gid); + ignored = fchown(fdout,srcst->st_uid, srcst->st_gid); ut.actime = srcst->st_atime; ut.modtime = srcst->st_mtime; utime(dst, &ut);