projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove duplicate code in rrd_open -- Richard Laager
[rrdtool.git]
/
src
/
rrd_client.c
diff --git
a/src/rrd_client.c
b/src/rrd_client.c
index
51b2eb8
..
5481ba3
100644
(file)
--- a/
src/rrd_client.c
+++ b/
src/rrd_client.c
@@
-492,7
+492,7
@@
int rrdc_is_connected(const char *daemon_addr) /* {{{ */
* but it is not specified in the current command.
* Daemon is only implied in this case if set in ENV
*/
* but it is not specified in the current command.
* Daemon is only implied in this case if set in ENV
*/
- if (addr != NULL &&
! strcmp(addr,"")
)
+ if (addr != NULL &&
strcmp(addr,"") != 0
)
return 1;
else
return 0;
return 1;
else
return 0;
@@
-657,7
+657,7
@@
int rrdc_connect (const char *addr) /* {{{ */
addr = getenv (ENV_RRDCACHED_ADDRESS);
}
addr = getenv (ENV_RRDCACHED_ADDRESS);
}
- if (addr == NULL ||
! strcmp(addr,"")
) {
+ if (addr == NULL ||
strcmp(addr,"") == 0
) {
addr = NULL;
return 0;
}
addr = NULL;
return 0;
}