summaryrefslogtreecommitdiff
path: root/os/io.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-10-23 15:01:58 -0400
committerAdam Jackson <ajax@redhat.com>2008-10-23 15:01:58 -0400
commit0b695262176e96f508921905ee7f9cc086c7daf0 (patch)
tree92f42d1d9fc69b285c3fac8fc1390abfd6a4f58f /os/io.c
parentaab73d719a8de6b830e47c7f47860b7990ea8d03 (diff)
Change some #define foo() -> static void foo()
Diffstat (limited to 'os/io.c')
-rw-r--r--os/io.c27
1 files changed, 19 insertions, 8 deletions
diff --git a/os/io.c b/os/io.c
index 40f69cf28..e25a79ce8 100644
--- a/os/io.c
+++ b/os/io.c
@@ -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)