projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
01713a5
)
netcmd plugin: Use boolean values where appropriate.
author
Florian Forster
<octo@collectd.org>
Wed, 6 Mar 2013 07:58:30 +0000
(08:58 +0100)
committer
Florian Forster
<octo@collectd.org>
Tue, 9 Jun 2015 16:52:10 +0000
(17:52 +0100)
src/netcmd.c
patch
|
blob
|
history
diff --git
a/src/netcmd.c
b/src/netcmd.c
index
1d1e41b
..
c46e5a7
100644
(file)
--- a/
src/netcmd.c
+++ b/
src/netcmd.c
@@
-1,6
+1,6
@@
/**
* collectd - src/netcmd.c
/**
* collectd - src/netcmd.c
- * Copyright (C) 2007-201
2
Florian octo Forster
+ * Copyright (C) 2007-201
3
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"),
*
* 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 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;
/*
static pthread_t listen_thread;
/*
@@
-1048,7
+1048,7
@@
static void *nc_server_thread (void __attribute__((unused)) *arg) /* {{{ */
pthread_exit ((void *) -1);
}
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)
{
status = poll (pollfd, (nfds_t) pollfd_num, /* timeout = */ -1);
if (status < 0)