fix build error on bsd

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11886 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-02-11 18:58:24 +00:00
parent c3cf71b448
commit 33e58774bc
1 changed files with 4 additions and 3 deletions

View File

@ -420,9 +420,10 @@ su_timer_queue_t *su_port_deferrable(su_port_t *self)
{
su_virtual_port_t *base = (su_virtual_port_t *)self;
if (base == NULL)
return (intptr_t)(errno = EFAULT), NULL;
if (base == NULL) {
errno = EFAULT;
return NULL;
}
return base->sup_vtable->su_port_deferrable(self);
}