gettimeofday: expose type of second argument
authorEric Blake <ebb9@byu.net>
Sat, 30 Jan 2010 14:47:40 +0000 (07:47 -0700)
committerEric Blake <ebb9@byu.net>
Fri, 5 Feb 2010 03:01:45 +0000 (20:01 -0700)
commitde4d0a383be20eb6cbeb09ecbd66a5514779b914
tree2a866b8a2c91719bfc4d651519ade9b28962d754
parent9d0ad652de159d08e5f679842f8a2a5658196361
gettimeofday: expose type of second argument

Needed to silence compiler warnings such as:
test-gettimeofday.c:23: warning: initialization from incompatible pointer type
based on whether gettimeofday complies with POSIX or provides
the extension of struct timezone.

* m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
* tests/test-gettimeofday.c: Use it to silence warning.
* doc/posix-functions/gettimeofday.texi (gettimeofday): Document
the issue.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
doc/posix-functions/gettimeofday.texi
m4/gettimeofday.m4
tests/test-gettimeofday.c