Mercurial > noffle
comparison src/fetch.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 | 0340b9c17edc |
children | 755e03bc7dcf |
comparison
equal
deleted
inserted
replaced
270:d6fedc09b052 | 271:3477050e8d10 |
---|---|
1 /* | 1 /* |
2 fetch.c | 2 fetch.c |
3 | 3 |
4 $Id: fetch.c 381 2002-05-14 14:25:45Z mirkol $ | 4 $Id: fetch.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 |
300 const char *article ) | 300 const char *article ) |
301 { | 301 { |
302 int ret; | 302 int ret; |
303 Str cmd; | 303 Str cmd; |
304 FILE *f; | 304 FILE *f; |
305 sig_t lastHandler; | 305 SignalHandler lastHandler; |
306 | 306 |
307 Log_err( "Return article to '%s' by mail", sender ); | 307 Log_err( "Return article to '%s' by mail", sender ); |
308 snprintf( cmd, MAXCHAR, "%s -t -oi", SENDMAILPROG); | 308 snprintf( cmd, MAXCHAR, "%s -t -oi", SENDMAILPROG); |
309 lastHandler = signal( SIGPIPE, SIG_IGN ); | 309 lastHandler = signal( SIGPIPE, SIG_IGN ); |
310 f = popen( cmd, "w" ); | 310 f = popen( cmd, "w" ); |