summaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2017-06-22 14:10:23 -0600
committerJens Axboe <axboe@kernel.dk>2017-06-22 14:12:39 -0600
commit67d2a9b8f987a0500c3b315602d6f248296d80e7 (patch)
tree33ea8f0ee5013d2c87026829dd2b26dae1b18cd7 /server.c
parent24575392bff8bdb9ec7709a78b4fbd48367fc1f5 (diff)
downloadfio-67d2a9b8f987a0500c3b315602d6f248296d80e7.tar.gz
fio-67d2a9b8f987a0500c3b315602d6f248296d80e7.tar.bz2
client/server: bool conversion
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'server.c')
-rw-r--r--server.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/server.c b/server.c
index b0a6e876..8b36e383 100644
--- a/server.c
+++ b/server.c
@@ -2270,7 +2270,7 @@ int fio_server_parse_host(const char *host, int ipv6, struct in_addr *inp,
* For local domain sockets:
* *ptr is the filename, *is_sock is 1.
*/
-int fio_server_parse_string(const char *str, char **ptr, int *is_sock,
+int fio_server_parse_string(const char *str, char **ptr, bool *is_sock,
int *port, struct in_addr *inp,
struct in6_addr *inp6, int *ipv6)
{
@@ -2279,13 +2279,13 @@ int fio_server_parse_string(const char *str, char **ptr, int *is_sock,
int lport = 0;
*ptr = NULL;
- *is_sock = 0;
+ *is_sock = false;
*port = fio_net_port;
*ipv6 = 0;
if (!strncmp(str, "sock:", 5)) {
*ptr = strdup(str + 5);
- *is_sock = 1;
+ *is_sock = true;
return 0;
}
@@ -2364,7 +2364,8 @@ int fio_server_parse_string(const char *str, char **ptr, int *is_sock,
static int fio_handle_server_arg(void)
{
int port = fio_net_port;
- int is_sock, ret = 0;
+ bool is_sock;
+ int ret = 0;
saddr_in.sin_addr.s_addr = htonl(INADDR_ANY);