projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests for module 'recvfrom'.
[gnulib.git]
/
tests
/
test-gettimeofday.c
diff --git
a/tests/test-gettimeofday.c
b/tests/test-gettimeofday.c
index
892b188
..
7d09fc3
100644
(file)
--- 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-2011 Free Software Foundation, Inc.
* Written by Jim Meyering.
*
* This program is free software: you can redistribute it and/or modify
* Written by Jim Meyering.
*
* This program is free software: you can redistribute it and/or modify
@@
-18,13
+18,18
@@
#include <config.h>
#include <sys/time.h>
#include <config.h>
#include <sys/time.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (gettimeofday, int,
+ (struct timeval *, GETTIMEOFDAY_TIMEZONE *));
+
#include <time.h>
#include <stdio.h>
#include <string.h>
int
#include <time.h>
#include <stdio.h>
#include <string.h>
int
-main (
int argc, char *argv[]
)
+main (
void
)
{
time_t t = 0;
struct tm *lt;
{
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;
}
fprintf (stderr, "gettimeofday still clobbers the localtime buffer!\n");
return 1;
}
- else
- {
- return 0;
- }
+ return 0;
}
}