Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanashworth committed Apr 3, 2015
1 parent 111df14 commit cd51689
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bench.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

unsigned long unixtime() {
struct timeval tp;
if (gettimeofday((struct timeval *) &tp, (NUL)) == 0) {
if (gettimeofday((struct timeval *) &tp, NULL) == 0) {
return tp.tv_sec;
}
return 0;
Expand All @@ -23,7 +23,7 @@ double microtime() {
struct timeval tp;
long sec = 0L;
double msec = 0.0;
if (gettimeofday((struct timeval *) &tp, (NUL)) == 0) {
if (gettimeofday((struct timeval *) &tp, NULL) == 0) {
msec = (double) (tp.tv_usec / MICRO_IN_SEC);
sec = tp.tv_sec;
if (msec >= 1.0)
Expand Down

0 comments on commit cd51689

Please sign in to comment.