client: use bool
Return bool instead of int.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user