os: Remove mffs()
This was always wide enough to work on an fd_mask ("mask" ffs presumably). We don't operate on fd_masks anymore, so this can go. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
parent
4b0a3cbab1
commit
4d15a2645f
18
os/WaitFor.c
18
os/WaitFor.c
|
@ -90,24 +90,6 @@ SOFTWARE.
|
||||||
#define GetErrno() errno
|
#define GetErrno() errno
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* like ffs, but uses fd_mask instead of int as argument, so it works
|
|
||||||
when fd_mask is longer than an int, such as common 64-bit platforms */
|
|
||||||
/* modifications by raphael */
|
|
||||||
int
|
|
||||||
mffs(fd_mask mask)
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
|
|
||||||
if (!mask)
|
|
||||||
return 0;
|
|
||||||
i = 1;
|
|
||||||
while (!(mask & 1)) {
|
|
||||||
i++;
|
|
||||||
mask >>= 1;
|
|
||||||
}
|
|
||||||
return i;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef DPMSExtension
|
#ifdef DPMSExtension
|
||||||
#include <X11/extensions/dpmsconst.h>
|
#include <X11/extensions/dpmsconst.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -148,13 +148,6 @@ extern Bool NewOutputPending;
|
||||||
|
|
||||||
extern WorkQueuePtr workQueue;
|
extern WorkQueuePtr workQueue;
|
||||||
|
|
||||||
/* in WaitFor.c */
|
|
||||||
#if defined(WIN32) && !defined(__CYGWIN__)
|
|
||||||
typedef long int fd_mask;
|
|
||||||
#endif
|
|
||||||
#define ffs mffs
|
|
||||||
extern int mffs(fd_mask);
|
|
||||||
|
|
||||||
/* in access.c */
|
/* in access.c */
|
||||||
extern Bool ComputeLocalClient(ClientPtr client);
|
extern Bool ComputeLocalClient(ClientPtr client);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue