From: Florian Forster Date: Wed, 6 Mar 2013 07:58:30 +0000 (+0100) Subject: netcmd plugin: Use boolean values where appropriate. X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=b143b60d7a28ab4314126a789d4156f378f1cb84 netcmd plugin: Use boolean values where appropriate. --- diff --git a/src/netcmd.c b/src/netcmd.c index 1d1e41ba..c46e5a7a 100644 --- a/src/netcmd.c +++ b/src/netcmd.c @@ -1,6 +1,6 @@ /** * collectd - src/netcmd.c - * Copyright (C) 2007-2012 Florian octo Forster + * Copyright (C) 2007-2013 Florian octo Forster * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -118,8 +118,8 @@ static size_t peers_num; static struct pollfd *pollfd = NULL; static size_t pollfd_num; -static int listen_thread_loop = 0; -static int listen_thread_running = 0; +static _Bool listen_thread_loop = 0; +static _Bool listen_thread_running = 0; static pthread_t listen_thread; /* @@ -1048,7 +1048,7 @@ static void *nc_server_thread (void __attribute__((unused)) *arg) /* {{{ */ pthread_exit ((void *) -1); } - while (listen_thread_loop != 0) + while (listen_thread_loop) { status = poll (pollfd, (nfds_t) pollfd_num, /* timeout = */ -1); if (status < 0)