*/
fd_set *IOMGR_AllocFDSet(void)
{
- struct IOMGR_fd_set *t;
+ fd_set *t;
if (iomgrFreeFDSets) {
- t = iomgrFreeFDSets;
+ t = (fd_set *) iomgrFreeFDSets;
iomgrFreeFDSets = iomgrFreeFDSets->next;
}
else {
t = malloc(sizeof(fd_set));
}
if (!t)
- return (fd_set*)0;
+ return NULL;
else {
- FD_ZERO((fd_set*)t);
- return (fd_set*)t;
+ FD_ZERO(t);
+ return t;
}
}
/* Tape drives on Sun boxes do not support select and return ENXIO */
if (errno == ENXIO) e=0, code=1;
#endif
-#if defined(AFS_SGI_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_OSF_ENV) || defined(AFS_AIX32_ENV)
+#if defined(AFS_SGI_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_AIX32_ENV)
/* For SGI and SVR4 - poll & select can return EAGAIN ... */
if (errno == EAGAIN) e=0;
#endif
}
LWP_DispatchProcess();
}
- return (void *)-1; /* keeps compilers happy. */
+ AFS_UNREACHED(return((void *)-1)); /* keeps compilers happy. */
}
/************************\
#ifdef DEBUG
if (lwp_debug != 0) puts("[Polling SELECT]");
#endif /* DEBUG */
-#if defined(AFS_SGI_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_OSF_ENV) || defined(AFS_AIX32_ENV) || defined(AFS_NT40_ENV)
+#if defined(AFS_SGI_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_AIX32_ENV) || defined(AFS_NT40_ENV)
again:
#endif
code = select(fds, readfds, writefds, exceptfds, timeout);
-#if defined(AFS_SGI_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_OSF_ENV) || defined(AFS_AIX32_ENV)
+#if defined(AFS_SGI_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_AIX32_ENV)
/*
* For SGI and SVR4 - poll & select can return EAGAIN ...
*/