Commit 24ecc7ee authored by Adam Mercer's avatar Adam Mercer
Browse files

cast timeval elements to long

Original: 0da9f4b9215892ce2ead96a112c0fcc2fa123d84
parent 36d285b3
......@@ -946,8 +946,8 @@ void timeval_print(struct timeval *tv)
char buffer[30];
time_t curtime;
printf("%ld.%06ld", tv->tv_sec, tv->tv_usec);
printf("%ld.%06ld", (long)tv->tv_sec, (long)tv->tv_usec);
curtime = tv->tv_sec;
strftime(buffer, 30, "%m-%d-%Y %T", localtime(&curtime));
printf(" = %s.%06ld\n", buffer, tv->tv_usec);
printf(" = %s.%06ld\n", buffer, (long)tv->tv_usec);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment