=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rcs/rcsdiff.c,v retrieving revision 1.84 retrieving revision 1.85 diff -u -r1.84 -r1.85 --- src/usr.bin/rcs/rcsdiff.c 2015/11/02 16:45:21 1.84 +++ src/usr.bin/rcs/rcsdiff.c 2019/06/28 13:35:03 1.85 @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsdiff.c,v 1.84 2015/11/02 16:45:21 nicm Exp $ */ +/* $OpenBSD: rcsdiff.c,v 1.85 2019/06/28 13:35:03 deraadt Exp $ */ /* * Copyright (c) 2005 Joris Vink * All rights reserved. @@ -331,7 +331,7 @@ buf_free(b1); b1 = NULL; - if (utimes(path1, (const struct timeval *)&tv) < 0) + if (utimes(path1, (const struct timeval *)&tv) == -1) warn("utimes"); (void)xasprintf(&path2, "%s/diff2.XXXXXXXXXX", rcs_tmpdir); @@ -340,7 +340,7 @@ buf_free(b2); b2 = NULL; - if (utimes(path2, (const struct timeval *)&tv2) < 0) + if (utimes(path2, (const struct timeval *)&tv2) == -1) warn("utimes"); ret = diffreg(path1, path2, NULL, dflags); @@ -408,7 +408,7 @@ buf_free(b1); b1 = NULL; - if (utimes(path1, (const struct timeval *)&tv) < 0) + if (utimes(path1, (const struct timeval *)&tv) == -1) warn("utimes"); (void)xasprintf(&path2, "%s/diff2.XXXXXXXXXX", rcs_tmpdir); @@ -417,7 +417,7 @@ buf_free(b2); b2 = NULL; - if (utimes(path2, (const struct timeval *)&tv2) < 0) + if (utimes(path2, (const struct timeval *)&tv2) == -1) warn("utimes"); ret = diffreg(path1, path2, NULL, dflags);