X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-gettimeofday.c;h=ff2bc72b54d02311f2032e8659132673b61da6e7;hb=bfbd822767f532ab05e24bda5b67b992f3562321;hp=892b18829c96d1b6cc90ff2234d923d156f40faf;hpb=57fdfd3f8ec62b105c53bcdf6f127c35c7fe7391;p=gnulib.git diff --git a/tests/test-gettimeofday.c b/tests/test-gettimeofday.c index 892b18829..ff2bc72b5 100644 --- a/tests/test-gettimeofday.c +++ b/tests/test-gettimeofday.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005, 2007 Free Software Foundation + * Copyright (C) 2005, 2007, 2009, 2010 Free Software Foundation, Inc. * Written by Jim Meyering. * * This program is free software: you can redistribute it and/or modify @@ -18,13 +18,18 @@ #include #include + +#include "signature.h" +SIGNATURE_CHECK (gettimeofday, int, + (struct timeval *, GETTIMEOFDAY_TIMEZONE *)); + #include #include #include int -main (int argc, char *argv[]) +main (void) { time_t t = 0; struct tm *lt; @@ -38,8 +43,5 @@ main (int argc, char *argv[]) fprintf (stderr, "gettimeofday still clobbers the localtime buffer!\n"); return 1; } - else - { - return 0; - } + return 0; }