projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d9b6a8
)
Fix typo in if caluse
author
Vladimir Smirnov
<civil.over@gmail.com>
Wed, 10 Sep 2014 19:08:50 +0000
(21:08 +0200)
committer
Florian Forster
<octo@collectd.org>
Wed, 10 Sep 2014 21:02:01 +0000
(23:02 +0200)
Fixes #729
Signed-off-by: Florian Forster <octo@collectd.org>
src/network.c
patch
|
blob
|
history
diff --git
a/src/network.c
b/src/network.c
index
ce9b0cc
..
a33d06e
100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-1996,7
+1996,7
@@
static sockent_t *sockent_create (int type) /* {{{ */
{
sockent_t *se;
- if ((type != SOCKENT_TYPE_CLIENT)
||
(type != SOCKENT_TYPE_SERVER))
+ if ((type != SOCKENT_TYPE_CLIENT)
&&
(type != SOCKENT_TYPE_SERVER))
return (NULL);
se = malloc (sizeof (*se));