summaryrefslogtreecommitdiffstats
path: root/bin/dd
diff options
context:
space:
mode:
Diffstat (limited to 'bin/dd')
-rw-r--r--bin/dd/dd.c4
-rw-r--r--bin/dd/misc.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/bin/dd/dd.c b/bin/dd/dd.c
index 0bb43f7..637e0cc 100644
--- a/bin/dd/dd.c
+++ b/bin/dd/dd.c
@@ -232,8 +232,8 @@ setup(void)
ctab = casetab;
}
- (void)gettimeofday(&tv, (struct timezone *)NULL);
- st.start = tv.tv_sec + tv.tv_usec * 1e-6;
+ (void)gettimeofday(&tv, NULL);
+ st.start = tv.tv_sec + tv.tv_usec * 1e-6;
}
static void
diff --git a/bin/dd/misc.c b/bin/dd/misc.c
index 4f538bc..8edc5a5 100644
--- a/bin/dd/misc.c
+++ b/bin/dd/misc.c
@@ -59,7 +59,7 @@ summary(void)
double secs;
char buf[100];
- (void)gettimeofday(&tv, (struct timezone *)NULL);
+ (void)gettimeofday(&tv, NULL);
secs = tv.tv_sec + tv.tv_usec * 1e-6 - st.start;
if (secs < 1e-6)
secs = 1e-6;
OpenPOWER on IntegriCloud