diff options
author | Jurij Smakov <jurij@wooyd.org> | 2006-11-11 14:09:15 +0200 |
---|---|---|
committer | Daniel Stone <daniels@endtroducing.fooishbar.org> | 2006-11-11 14:13:56 +0200 |
commit | acb5ff4c73ac4d52201d7c421f488e2ead5c8b9c (patch) | |
tree | 398635e5a72abd9679e1dcfd64023bbb5fa2ee2f /include/dix.h | |
parent | ca094684196886a4a1c10273049fae0705a3edc2 (diff) |
ffs: handle 0 argument (bug #8968)
Handle an argument of 0 in ffs(), instead of looping indefinitely.
Add an ffs prototype to dix.h, and add includes to ffs.c.
(cherry picked from 34164e551e4c3909322d50b09835ca4ac1d49d68 commit)
Diffstat (limited to 'include/dix.h')
-rw-r--r-- | include/dix.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/dix.h b/include/dix.h index 983a84f02..a5a570a51 100644 --- a/include/dix.h +++ b/include/dix.h @@ -817,4 +817,7 @@ typedef struct { extern int xstrcasecmp(char *s1, char *s2); #endif +/* ffs.c */ +extern int ffs(int i); + #endif /* DIX_H */ |