diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-04-16 18:17:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-04-16 18:17:40 +0000 |
commit | 506564467e28ef60074e2ec4422c6ec5bc5fd6dd (patch) | |
tree | 901c26b5eeda57d9c411dc102082ec805ae4fe52 | |
parent | 6fd85eed13254bd5be426282eb42180ab2d807e6 (diff) |
do not need to cast type to same type
-rw-r--r-- | sbin/dump/main.c | 4 | ||||
-rw-r--r-- | sbin/dump/tape.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sbin/dump/main.c b/sbin/dump/main.c index 518a04cb81e..feb245b3675 100644 --- a/sbin/dump/main.c +++ b/sbin/dump/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.45 2011/04/25 15:24:16 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.46 2013/04/16 18:17:39 deraadt Exp $ */ /* $NetBSD: main.c,v 1.14 1997/06/05 11:13:24 lukem Exp $ */ /*- @@ -481,7 +481,7 @@ main(int argc, char *argv[]) quit("can't allocate tape buffers - try a smaller blocking factor.\n"); startnewtape(1); - (void)time((time_t *)&(tstart_writing)); + (void)time(&tstart_writing); xferrate = 0; dumpmap(usedinomap, TS_CLRI, maxino - 1); diff --git a/sbin/dump/tape.c b/sbin/dump/tape.c index 0f4e60d757b..db622b5a249 100644 --- a/sbin/dump/tape.c +++ b/sbin/dump/tape.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tape.c,v 1.32 2012/08/22 05:20:51 halex Exp $ */ +/* $OpenBSD: tape.c,v 1.33 2013/04/16 18:17:39 deraadt Exp $ */ /* $NetBSD: tape.c,v 1.11 1997/06/05 11:13:26 lukem Exp $ */ /*- @@ -256,7 +256,7 @@ statussig(int signo) if (blockswritten < 500) return; - (void) time((time_t *) &tnow); + (void) time(&tnow); deltat = tstart_writing - tnow + (1.0 * (tnow - tstart_writing)) / blockswritten * tapesize; (void)snprintf(msgbuf, sizeof(msgbuf), |