aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-31 13:58:00 +0100
committerMax Kellermann <max@duempel.org>2008-10-31 13:58:00 +0100
commita92903983d0f955ddf7ec6446b196d988a6536b9 (patch)
tree397f9fd59c6cd1f779fda17eb8cf4589638e416a /src
parent6757c17689a3990f1daddd035d8dcc39b90e18b8 (diff)
downloadmpd-a92903983d0f955ddf7ec6446b196d988a6536b9.tar.gz
mpd-a92903983d0f955ddf7ec6446b196d988a6536b9.tar.xz
mpd-a92903983d0f955ddf7ec6446b196d988a6536b9.zip
client: use bool
Return bool instead of int.
Diffstat (limited to '')
-rw-r--r--src/client.c2
-rw-r--r--src/client.h2
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