Mercurial > noffle
comparison src/protocol.c @ 271:3477050e8d10 noffle
[svn] * src/client.c,src/fetch.c,src/lock.c.src/protocol.c,src/util.h,src/util.c:
Define our own SignalHandler type rather than use the rather
Linux-specific (and potentially glibc version specific) sig_t.
* src/client.c,src/database.h,src/database.c,src/over.h,src/over.c,
src/pseudo.c,src/server.c: Ensure format string specifiers and passed
data types match. As part of this, change some uses of size_t as a
general data type to an appropriate base C type. Database status changes
from int to unsigned.
author | bears |
---|---|
date | Sun, 10 Nov 2002 11:32:17 +0000 |
parents | 030c41dfd9ba |
children | baa6408d1bbc |
comparison
equal
deleted
inserted
replaced
270:d6fedc09b052 | 271:3477050e8d10 |
---|---|
1 /* | 1 /* |
2 protocol.c | 2 protocol.c |
3 | 3 |
4 $Id: protocol.c 383 2002-06-26 13:13:26Z bears $ | 4 $Id: protocol.c 403 2002-11-10 11:32:17Z bears $ |
5 */ | 5 */ |
6 | 6 |
7 #if HAVE_CONFIG_H | 7 #if HAVE_CONFIG_H |
8 #include <config.h> | 8 #include <config.h> |
9 #endif | 9 #endif |
34 Bool | 34 Bool |
35 Prt_getLn( Str line, FILE *f, int timeoutSeconds ) | 35 Prt_getLn( Str line, FILE *f, int timeoutSeconds ) |
36 { | 36 { |
37 size_t len; | 37 size_t len; |
38 char *ret; | 38 char *ret; |
39 sig_t oldHandler = NULL; | 39 SignalHandler oldHandler = NULL; |
40 int line_too_long; | 40 int line_too_long; |
41 | 41 |
42 if ( timeoutSeconds >= 0 ) | 42 if ( timeoutSeconds >= 0 ) |
43 { | 43 { |
44 oldHandler = Utl_installSignalHandler( SIGALRM, readAlarm ); | 44 oldHandler = Utl_installSignalHandler( SIGALRM, readAlarm ); |