projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move Solaris if_fd to local scope.
[tinc]
/
src
/
tincctl.c
diff --git
a/src/tincctl.c
b/src/tincctl.c
index
7a3195e
..
9fc749b
100644
(file)
--- a/
src/tincctl.c
+++ b/
src/tincctl.c
@@
-1613,7
+1613,7
@@
static int cmd_config(int argc, char *argv[]) {
if(action < -1) {
if(!found)
fprintf(stderr, "No matching configuration variables found.\n");
if(action < -1) {
if(!found)
fprintf(stderr, "No matching configuration variables found.\n");
- return
0
;
+ return
1
;
}
// Make sure we wrote everything...
}
// Make sure we wrote everything...
@@
-1626,7
+1626,7
@@
static int cmd_config(int argc, char *argv[]) {
if(action < 0 && !removed) {
remove(tmpfile);
fprintf(stderr, "No configuration variables deleted.\n");
if(action < 0 && !removed) {
remove(tmpfile);
fprintf(stderr, "No configuration variables deleted.\n");
- return
*value != 0
;
+ return
1
;
}
// Replace the configuration file with the new one
}
// Replace the configuration file with the new one