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:
parent
c3cf71b448
commit
33e58774bc
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue