Change alt_dest_name() to alt_dest_opt().
authorWayne Davison <wayne@opencoder.net>
Sat, 13 Jun 2020 19:04:13 +0000 (12:04 -0700)
committerWayne Davison <wayne@opencoder.net>
Sat, 13 Jun 2020 19:04:13 +0000 (12:04 -0700)
compat.c
main.c
options.c

index 19d054bf2b37fd37ab7d756ffb1525022e19fd07..e01adfbdf84c00710509af7dbca380a4c62f5a88 100644 (file)
--- a/compat.c
+++ b/compat.c
@@ -565,7 +565,7 @@ void setup_protocol(int f_out,int f_in)
                        rprintf(FERROR,
                            "%s with --inplace requires protocol 29 or higher"
                            " (negotiated %d).\n",
-                           alt_dest_name(0), protocol_version);
+                           alt_dest_opt(0), protocol_version);
                        exit_cleanup(RERR_PROTOCOL);
                }
 
@@ -573,7 +573,7 @@ void setup_protocol(int f_out,int f_in)
                        rprintf(FERROR,
                            "Using more than one %s option requires protocol"
                            " 29 or higher (negotiated %d).\n",
-                           alt_dest_name(0), protocol_version);
+                           alt_dest_opt(0), protocol_version);
                        exit_cleanup(RERR_PROTOCOL);
                }
 
diff --git a/main.c b/main.c
index 5ccfabe3ca8d3c9ebd759b58e4b9dc996717607a..6f86eb90284d36308a114b3bb2bedd6e11e292ea 100644 (file)
--- a/main.c
+++ b/main.c
@@ -833,9 +833,9 @@ static void check_alt_basis_dirs(void)
                        basis_dir[j] = bdir = new;
                }
                if (do_stat(bdir, &st) < 0)
-                       rprintf(FWARNING, "%s arg does not exist: %s\n", alt_dest_name(0), bdir);
+                       rprintf(FWARNING, "%s arg does not exist: %s\n", alt_dest_opt(0), bdir);
                else if (!S_ISDIR(st.st_mode))
-                       rprintf(FWARNING, "%s arg is not a dir: %s\n", alt_dest_name(0), bdir);
+                       rprintf(FWARNING, "%s arg is not a dir: %s\n", alt_dest_opt(0), bdir);
        }
 }
 
index d865a8e1a737114a67900ff97b453a4b548cd486..a4f4262e685b5be6d7bd3c39491c101c946dac82 100644 (file)
--- a/options.c
+++ b/options.c
@@ -1297,7 +1297,7 @@ static void popt_unalias(poptContext con, const char *opt)
        poptAddAlias(con, unalias, 0);
 }
 
-char *alt_dest_name(int type)
+char *alt_dest_opt(int type)
 {
        if (!type)
                type = alt_dest_type;
@@ -1699,7 +1699,7 @@ int parse_arguments(int *argc_p, const char ***argv_p)
                        if (alt_dest_type && alt_dest_type != want_dest_type) {
                                snprintf(err_buf, sizeof err_buf,
                                        "ERROR: the %s option conflicts with the %s option\n",
-                                       alt_dest_name(want_dest_type), alt_dest_name(0));
+                                       alt_dest_opt(want_dest_type), alt_dest_opt(0));
                                return 0;
                        }
                        alt_dest_type = want_dest_type;
@@ -1707,7 +1707,7 @@ int parse_arguments(int *argc_p, const char ***argv_p)
                        if (basis_dir_cnt >= MAX_BASIS_DIRS) {
                                snprintf(err_buf, sizeof err_buf,
                                        "ERROR: at most %d %s args may be specified\n",
-                                       MAX_BASIS_DIRS, alt_dest_name(0));
+                                       MAX_BASIS_DIRS, alt_dest_opt(0));
                                return 0;
                        }
                        /* We defer sanitizing this arg until we know what
@@ -2797,7 +2797,7 @@ void server_options(char **args, int *argc_p)
                         *   option, so don't send it if client is the sender.
                         */
                        for (i = 0; i < basis_dir_cnt; i++) {
-                               args[ac++] = alt_dest_name(0);
+                               args[ac++] = alt_dest_opt(0);
                                args[ac++] = basis_dir[i];
                        }
                }