diff options
author | Adam Jackson <ajax@redhat.com> | 2008-10-23 15:01:58 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-10-23 15:01:58 -0400 |
commit | 0b695262176e96f508921905ee7f9cc086c7daf0 (patch) | |
tree | 92f42d1d9fc69b285c3fac8fc1390abfd6a4f58f /os/io.c | |
parent | aab73d719a8de6b830e47c7f47860b7990ea8d03 (diff) |
Change some #define foo() -> static void foo()
Diffstat (limited to 'os/io.c')
-rw-r--r-- | os/io.c | 27 |
1 files changed, 19 insertions, 8 deletions
@@ -171,14 +171,25 @@ static OsCommPtr AvailableInput = (OsCommPtr)NULL; * a partial request) because others clients need to be scheduled. *****************************************************************/ -#define YieldControl() \ - { isItTimeToYield = TRUE; \ - timesThisConnection = 0; } -#define YieldControlNoInput() \ - { YieldControl(); \ - FD_CLR(fd, &ClientsWithInput); } -#define YieldControlDeath() \ - { timesThisConnection = 0; } +static void +YieldControl(void) +{ + isItTimeToYield = TRUE; + timesThisConnection = 0; +} + +static void +YieldControlNoInput(void) +{ + YieldControl(); + FD_CLR(fd, &ClientsWithInput); +} + +static void +YieldControlDeath(void) +{ + timesThisConnection = 0; +} int ReadRequestFromClient(ClientPtr client) |