[-Wformat] Fix scripty.cc again.

Seems like timeval is defined differently on OS X than on Linux. So
fixing the format specifier on one breaks it on the other. Explicitly
cast the value being passed in to fix the problem on both the platforms.
This commit is contained in:
Suresh Sundriyal 2015-04-02 19:04:54 -07:00
parent 814a549c72
commit e62172fb63
1 changed files with 1 additions and 1 deletions

View File

@ -623,7 +623,7 @@ int main(int argc, char *argv[])
fprintf(scripty_data.sd_to_child,
"sleep %ld.%06ld\n"
"write ",
diff.tv_sec, diff.tv_usec);
(long)diff.tv_sec, (long)diff.tv_usec);
dump_memory(scripty_data.sd_to_child,
buffer,
rc);