lib: tevent: Fix compile error in Solaris ports backend.
authorGordon Ross <gordon.w.ross@gmail.com>
Wed, 29 Apr 2015 18:34:10 +0000 (11:34 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 29 Apr 2015 21:42:20 +0000 (23:42 +0200)
Signed-off-by: Gordon Ross <gordon.w.ross@gmail.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
lib/tevent/tevent_port.c

index dd4958e86aaa3bb26ae6afa5eda12246eb394d08..5b487d7341ebff0a550e183c28e6bc93e7e233fe 100644 (file)
@@ -174,10 +174,11 @@ static int associate_all_events(struct port_event_context *port_ev)
        struct port_associate_vals *val;
 
        for (val = port_ev->po_vals; val; val = val->next) {
+               int ret;
                if (val->associated_event) {
                        continue;
                }
-               int ret = port_associate(port_ev->port_fd,
+               ret = port_associate(port_ev->port_fd,
                                        PORT_SOURCE_FD,
                                        (uintptr_t)val->fde->fd,
                                        val->events,