diff options
author | Simon Rettberg | 2014-12-31 23:39:21 +0100 |
---|---|---|
committer | Simon Rettberg | 2014-12-31 23:39:21 +0100 |
commit | 6788efa3459b9581b1e4197e37f504d8fb2e8e87 (patch) | |
tree | f177c92792884dd98c82b8d8828b092b2119a36c /src/server/sockhelper.h | |
parent | [SERVER] Minor tweaks and improvements (diff) | |
download | dnbd3-6788efa3459b9581b1e4197e37f504d8fb2e8e87.tar.gz dnbd3-6788efa3459b9581b1e4197e37f504d8fb2e8e87.tar.xz dnbd3-6788efa3459b9581b1e4197e37f504d8fb2e8e87.zip |
[SERVER] Use stdbool.h for booleans; minor refactoring of variable and function names
Diffstat (limited to 'src/server/sockhelper.h')
-rw-r--r-- | src/server/sockhelper.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/sockhelper.h b/src/server/sockhelper.h index cef19ec..394e5e4 100644 --- a/src/server/sockhelper.h +++ b/src/server/sockhelper.h @@ -77,8 +77,8 @@ inline void sock_set_addr4(char *ip, uint16_t port, struct sockaddr_in *addr) * in between are counted too. In other words: represents the index of the last valid socket fd in the * array plus one, or 0 if there are none. * @param array_length the capacity of the array - * @return TRUE on success or if the passed fd was -1, FALSE iff the array is already full + * @return true on success or if the passed fd was -1, false iff the array is already full */ -int sock_add_array(const int sock, int *array, int *array_fill, const int array_length); +bool sock_add_array(const int sock, int *array, int *array_fill, const int array_length); #endif /* SOCKHELPER_H_ */ |