git.samba.org
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b29d5bb
)
tools/ctdb: Remove redundant filtering loop in control_natgwlist()
author
Martin Schwenke
<martin@meltin.net>
Tue, 17 Jul 2012 11:25:27 +0000
(21:25 +1000)
committer
Martin Schwenke
<martin@meltin.net>
Fri, 28 Sep 2012 07:05:34 +0000
(17:05 +1000)
This used to catch trailing blank lines. However, these are caught
just as effectively by the whitespace filtering in the loop below.
Signed-off-by: Martin Schwenke <martin@meltin.net>
tools/ctdb.c
patch
|
blob
|
history
diff --git
a/tools/ctdb.c
b/tools/ctdb.c
index bc6c11b88f893e5509cac282964be7383b237ca6..badfb6f433fee7b01da69668749be33ad25ffad8 100644
(file)
--- a/
tools/ctdb.c
+++ b/
tools/ctdb.c
@@
-1015,9
+1015,6
@@
static int control_natgwlist(struct ctdb_context *ctdb, int argc, const char **a
ctdb_set_error(ctdb, "Failed to load natgw node list '%s'\n", natgw_list);
return -1;
}
- while (nlines > 0 && strcmp(lines[nlines-1], "") == 0) {
- nlines--;
- }
for (i=0;i<nlines;i++) {
char *node;