diff options
author | Niels Provos <provos@gmail.com> | 2008-03-29 01:45:45 +0000 |
---|---|---|
committer | Niels Provos <provos@gmail.com> | 2008-03-29 01:45:45 +0000 |
commit | ca42671a1443b695bc9a7640d4eb223d1a34fbcc (patch) | |
tree | 25b777596378c604af4f26bd92376c9069423f02 /select.c | |
parent | cb50f615d4902a0703a604bf64b1a5d014bcbb70 (diff) | |
download | libevent-ca42671a1443b695bc9a7640d4eb223d1a34fbcc.tar.gz |
make event methods static so that they are not exported; from Andrei Nigmatulin
svn:r692
Diffstat (limited to 'select.c')
-rw-r--r-- | select.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -70,11 +70,11 @@ struct selectop { struct event **event_w_by_fd; }; -void *select_init (struct event_base *); -int select_add (void *, struct event *); -int select_del (void *, struct event *); -int select_dispatch (struct event_base *, void *, struct timeval *); -void select_dealloc (struct event_base *, void *); +static void *select_init (struct event_base *); +static int select_add (void *, struct event *); +static int select_del (void *, struct event *); +static int select_dispatch (struct event_base *, void *, struct timeval *); +static void select_dealloc (struct event_base *, void *); const struct eventop selectops = { "select", @@ -88,7 +88,7 @@ const struct eventop selectops = { static int select_resize(struct selectop *sop, int fdsz); -void * +static void * select_init(struct event_base *base) { struct selectop *sop; @@ -134,7 +134,7 @@ check_selectop(struct selectop *sop) #define check_selectop(sop) do { (void) sop; } while (0) #endif -int +static int select_dispatch(struct event_base *base, void *arg, struct timeval *tv) { int res, i; @@ -250,7 +250,7 @@ select_resize(struct selectop *sop, int fdsz) } -int +static int select_add(void *arg, struct event *ev) { struct selectop *sop = arg; @@ -300,7 +300,7 @@ select_add(void *arg, struct event *ev) * Nothing to be done here. */ -int +static int select_del(void *arg, struct event *ev) { struct selectop *sop = arg; @@ -328,7 +328,7 @@ select_del(void *arg, struct event *ev) return (0); } -void +static void select_dealloc(struct event_base *base, void *arg) { struct selectop *sop = arg; |