* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
* USA
*
- * $Id: ports.c 26286 2008-12-10 23:28:53Z androsyn $
*/
-#include <libratbox_config.h>
-#include <ratbox_lib.h>
+#include <librb_config.h>
+#include <rb_lib.h>
#include <commio-int.h>
#include <event-int.h>
#if defined(HAVE_PORT_H) && (HAVE_PORT_CREATE)
int
rb_select_ports(long delay)
{
- int i, fd;
+ int i, fd = -1;
unsigned int nget = 1;
struct timespec poll_time;
struct timespec *p = NULL;
} else if(pelst[i].portev_source == PORT_SOURCE_TIMER)
{
ev = (struct ev_entry *)pelst[i].portev_user;
- rb_run_event(ev);
+ rb_run_one_event(ev);
}
}
return RB_OK;
}
int
-rb_ports_sched_event(struct ev_entry *event, int when)
+rb_ports_sched_event(struct ev_entry *event __attribute__((unused)), int when __attribute__((unused)))
{
errno = ENOSYS;
return -1;
}
void
-rb_ports_unsched_event(struct ev_entry *event)
+rb_ports_unsched_event(struct ev_entry *event __attribute__((unused)))
{
return;
}
}
void
-rb_setselect_ports(rb_fde_t *F, unsigned int type, PF * handler, void *client_data)
+rb_setselect_ports(rb_fde_t *F __attribute__((unused)), unsigned int type __attribute__((unused)), PF * handler __attribute__((unused)), void *client_data __attribute__((unused)))
{
errno = ENOSYS;
return;
}
int
-rb_select_ports(long delay)
+rb_select_ports(long delay __attribute__((unused)))
{
errno = ENOSYS;
return -1;
}
int
-rb_setup_fd_ports(rb_fde_t *F)
+rb_setup_fd_ports(rb_fde_t *F __attribute__((unused)))
{
errno = ENOSYS;
return -1;