diff options
author | Lukas Fleischer <info@cryptocrack.de> | 2011-04-27 19:51:05 +0200 |
---|---|---|
committer | Lukas Fleischer <info@cryptocrack.de> | 2011-05-10 21:43:23 +0200 |
commit | 5fa942b4cf4f7975181d199c3bb773f01f336a1d (patch) | |
tree | 321ff1d81f3b6317ce84a0d86fdedd3f6e3caabb /test | |
parent | d2108361c0f4b50d5fecd6508ced12de1c98835c (diff) | |
download | faketime-ng-5fa942b4cf4f7975181d199c3bb773f01f336a1d.tar.gz |
Cast time_t to unsigned integer when using printf().
Suppress compiler warnings when using "-Wformat".
Signed-off-by: Lukas Fleischer <info@cryptocrack.de>
Diffstat (limited to 'test')
-rw-r--r-- | test/timetest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/timetest.c b/test/timetest.c index 2af5b9d..2177730 100644 --- a/test/timetest.c +++ b/test/timetest.c @@ -43,7 +43,7 @@ int main (int argc, char **argv) { time(&now); printf("time() : Current date and time: %s", ctime(&now)); - printf("time(NULL) : Seconds since Epoch : %u\n", time(NULL)); + printf("time(NULL) : Seconds since Epoch : %u\n", (unsigned int)time(NULL)); ftime(&tb); printf("ftime() : Current date and time: %s", ctime(&tb.time)); |