mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
r14952@tombo: nickm | 2007-11-25 14:47:45 -0500
Fix an unused variable warning. svn:r549
This commit is contained in:
parent
d1ad9403cb
commit
ab010e161f
2
signal.c
2
signal.c
@ -72,12 +72,12 @@ static void
|
||||
evsignal_cb(int fd, short what, void *arg)
|
||||
{
|
||||
static char signals[100];
|
||||
struct event *ev = arg;
|
||||
#ifdef WIN32
|
||||
SSIZE_T n;
|
||||
#else
|
||||
ssize_t n;
|
||||
#endif
|
||||
(void)arg; /* Suppress "unused variable" warning. */
|
||||
|
||||
n = recv(fd, signals, sizeof(signals), 0);
|
||||
if (n == -1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user