From a92903983d0f955ddf7ec6446b196d988a6536b9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 31 Oct 2008 13:58:00 +0100 Subject: [PATCH] client: use bool Return bool instead of int. --- src/client.c | 2 +- src/client.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.c b/src/client.c index 2a69dd7fb..ee984641e 100644 --- a/src/client.c +++ b/src/client.c @@ -100,7 +100,7 @@ static void client_write_deferred(struct client *client); static void client_write_output(struct client *client); -int client_is_expired(const struct client *client) +bool client_is_expired(const struct client *client) { return client->fd < 0; } diff --git a/src/client.h b/src/client.h index bcbc7126c..e6661e249 100644 --- a/src/client.h +++ b/src/client.h @@ -35,7 +35,7 @@ void client_manager_expire(void); void client_new(int fd, const struct sockaddr *addr, int uid); -int client_is_expired(const struct client *client); +bool client_is_expired(const struct client *client); /** * returns the uid of the client process, or a negative value if the