- Use NULL instead of 0 for all non-handle pointers.
- Fix non-ANSI function declarations.
- Make a function static.

diff --git a/server/fd.c b/server/fd.c
index 72c3d9f..6d6b008 100644
--- a/server/fd.c
+++ b/server/fd.c
@@ -1042,7 +1042,7 @@
     {
         struct timeval when;
 
-        gettimeofday( &when, 0 );
+        gettimeofday( &when, NULL );
         add_timeout( &when, *timeout );
         async->timeout = add_timeout_user( &when, async_callback, async );
     }