Skip to content

Commit

Permalink
Simplified one "if" that checks if one of the --FOO-dest options
Browse files Browse the repository at this point in the history
was specified.
  • Loading branch information
Wayne Davison committed Jan 15, 2005
1 parent e8b155a commit 12a79db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions options.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ static int daemon_opt; /* sets am_daemon after option error-reporting */
static int modify_window_set;
static int compare_dest = 0;
static int basis_dir_cnt = 0;
static char *dest_option;
static char *dest_option = NULL;
static char *max_size_arg;

/** Local address to bind. As a character string because it's
Expand Down Expand Up @@ -958,7 +958,7 @@ int parse_arguments(int *argc, const char ***argv, int frommain)
am_server ? "server" : "client");
return 0;
#endif
if (compare_dest || copy_dest || link_dest) {
if (dest_option) {
snprintf(err_buf, sizeof err_buf,
"--inplace does not yet work with %s\n",
dest_option);
Expand Down

0 comments on commit 12a79db

Please sign in to comment.