diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-04-16 20:24:46 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-04-16 20:24:46 +0000 |
commit | 39398764b16236f3508552b6409ac527c6a67c1d (patch) | |
tree | 3bb586c9bbdd048e1f216ff84c2924957cf4860a /usr.bin/rcs | |
parent | d39db7d9a825c9b3165c51278c2b310d552c668b (diff) |
remove wrong casts; ok millert
Diffstat (limited to 'usr.bin/rcs')
-rw-r--r-- | usr.bin/rcs/co.c | 4 | ||||
-rw-r--r-- | usr.bin/rcs/rcsdiff.c | 8 | ||||
-rw-r--r-- | usr.bin/rcs/rcsutil.c | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/rcs/co.c b/usr.bin/rcs/co.c index 56bebd9707d..37089b2e825 100644 --- a/usr.bin/rcs/co.c +++ b/usr.bin/rcs/co.c @@ -1,4 +1,4 @@ -/* $OpenBSD: co.c,v 1.116 2010/12/03 19:44:58 chl Exp $ */ +/* $OpenBSD: co.c,v 1.117 2013/04/16 20:24:45 deraadt Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -485,7 +485,7 @@ checkout_rev(RCSFILE *file, RCSNUM *frev, const char *dst, int flags, if (flags & CO_REVDATE) { struct timeval tv[2]; memset(&tv, 0, sizeof(tv)); - tv[0].tv_sec = (long)rcs_rev_getdate(file, rev); + tv[0].tv_sec = rcs_rev_getdate(file, rev); tv[1].tv_sec = tv[0].tv_sec; if (futimes(fd, (const struct timeval *)&tv) < 0) warn("utimes"); diff --git a/usr.bin/rcs/rcsdiff.c b/usr.bin/rcs/rcsdiff.c index a260ad00b3b..31e3e68b221 100644 --- a/usr.bin/rcs/rcsdiff.c +++ b/usr.bin/rcs/rcsdiff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsdiff.c,v 1.78 2010/12/06 22:50:34 chl Exp $ */ +/* $OpenBSD: rcsdiff.c,v 1.79 2013/04/16 20:24:45 deraadt Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -314,7 +314,7 @@ rcsdiff_file(RCSFILE *file, RCSNUM *rev, const char *filename, int dflags) } b1 = rcs_kwexp_buf(b1, file, rev); - tv[0].tv_sec = (long)rcs_rev_getdate(file, rev); + tv[0].tv_sec = rcs_rev_getdate(file, rev); tv[1].tv_sec = tv[0].tv_sec; if ((b2 = buf_load(filename)) == NULL) { @@ -394,7 +394,7 @@ rcsdiff_rev(RCSFILE *file, RCSNUM *rev1, RCSNUM *rev2, int dflags) } b1 = rcs_kwexp_buf(b1, file, rev1); - tv[0].tv_sec = (long)rcs_rev_getdate(file, rev1); + tv[0].tv_sec = rcs_rev_getdate(file, rev1); tv[1].tv_sec = tv[0].tv_sec; rcsnum_tostr(rev2, rbuf2, sizeof(rbuf2)); @@ -407,7 +407,7 @@ rcsdiff_rev(RCSFILE *file, RCSNUM *rev1, RCSNUM *rev2, int dflags) } b2 = rcs_kwexp_buf(b2, file, rev2); - tv2[0].tv_sec = (long)rcs_rev_getdate(file, rev2); + tv2[0].tv_sec = rcs_rev_getdate(file, rev2); tv2[1].tv_sec = tv2[0].tv_sec; if (!quiet) diff --git a/usr.bin/rcs/rcsutil.c b/usr.bin/rcs/rcsutil.c index 88677f77a6c..12de69af501 100644 --- a/usr.bin/rcs/rcsutil.c +++ b/usr.bin/rcs/rcsutil.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsutil.c,v 1.38 2010/12/06 22:52:55 chl Exp $ */ +/* $OpenBSD: rcsutil.c,v 1.39 2013/04/16 20:24:45 deraadt Exp $ */ /* * Copyright (c) 2005, 2006 Joris Vink <joris@openbsd.org> * Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org> @@ -59,7 +59,7 @@ rcs_get_mtime(RCSFILE *file) return (-1); } - mtime = (time_t)st.st_mtimespec.tv_sec; + mtime = st.st_mtimespec.tv_sec; return (mtime); } |