client: use bool

Return bool instead of int.
This commit is contained in:
Max Kellermann
2008-10-31 13:58:00 +01:00
parent 6757c17689
commit a92903983d
2 changed files with 2 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ static void client_write_deferred(struct client *client);
static void client_write_output(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; return client->fd < 0;
} }

View File

@@ -35,7 +35,7 @@ void client_manager_expire(void);
void client_new(int fd, const struct sockaddr *addr, int uid); 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 * returns the uid of the client process, or a negative value if the