Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9d33e6f
)
Moved the options_rejected label to avoid a compiler warning on
author
Wayne Davison
<wayned@samba.org>
Sun, 19 Nov 2006 04:39:35 +0000
(
04:39
+0000)
committer
Wayne Davison
<wayned@samba.org>
Sun, 19 Nov 2006 04:39:35 +0000
(
04:39
+0000)
some systems.
options.c
patch
|
blob
|
blame
|
history
diff --git
a/options.c
b/options.c
index
954719d
..
dd47894
100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-1246,12
+1246,8
@@
int parse_arguments(int *argc, const char ***argv, int frommain)
if (!*backup_dir)
goto options_rejected;
clean_fname(backup_dir, 1);
if (!*backup_dir)
goto options_rejected;
clean_fname(backup_dir, 1);
- if (check_filter(elp, backup_dir, 1) < 0) {
- options_rejected:
- snprintf(err_buf, sizeof err_buf,
- "Your options have been rejected by the server.\n");
- return 0;
- }
+ if (check_filter(elp, backup_dir, 1) < 0)
+ goto options_rejected;
}
}
}
}
@@
-1457,6
+1453,11
@@
int parse_arguments(int *argc, const char ***argv, int frommain)
am_starting_up = 0;
return 1;
am_starting_up = 0;
return 1;
+
+ options_rejected:
+ snprintf(err_buf, sizeof err_buf,
+ "Your options have been rejected by the server.\n");
+ return 0;
}
}