From 98041cbe8d50b486f7ec15d17c62556452ec04eb Mon Sep 17 00:00:00 2001 From: Perry Lorier Date: Sat, 19 Feb 2005 21:47:32 +0000 Subject: [PATCH] Author: Perry Lorier Log message: The prototype of getsockopt() has a socklen_t not size_t, this patch fixes a warning generated on amd64 machines. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1317 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 5 +++++ ircd/engine_epoll.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 38bffe8..1d5dfde 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-02-20 Perry Lorier + + * ircd/engine_epoll.c: Change a size_t to socklen_t to match + getsockopt prototype, so it compiles without warning on amd64 + 2005-02-19 Michael Poole * ircd/s_err.c (RPL_STATSCLINE): Add format field to prefix IPv6 diff --git a/ircd/engine_epoll.c b/ircd/engine_epoll.c index 4a929ab..f3ad19e 100644 --- a/ircd/engine_epoll.c +++ b/ircd/engine_epoll.c @@ -226,7 +226,7 @@ engine_loop(struct Generators *gen) { struct epoll_event *events; struct Socket *sock; - size_t codesize; + socklen_t codesize; int events_count, i, wait, nevs, errcode; if ((events_count = feature_int(FEAT_POLLS_PER_LOOP)) < 20) -- 2.20.1