summaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorWayne Davison <wayne@opencoder.net>2020-07-05 09:33:03 -0700
committerWayne Davison <wayne@opencoder.net>2020-07-05 14:22:09 -0700
commitda45cecfc8660159c9dd70e1e9dabf8596fdd7e1 (patch)
treea2d6009b57aa4490aa81ea800e0c1a1fb3f7c897 /options.c
parent87b5d233e9be3c6abeda48613943f00dd5554bd4 (diff)
downloadrsync-da45cecfc8660159c9dd70e1e9dabf8596fdd7e1.tar.gz
Tweak a couple var names.
Diffstat (limited to 'options.c')
-rw-r--r--options.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/options.c b/options.c
index d498e226..956d6e33 100644
--- a/options.c
+++ b/options.c
@@ -586,7 +586,7 @@ static void print_info_flags(enum logcode f)
STRUCT_STAT *dumstat;
char line_buf[75];
int line_len, j;
- char *capabilities[] = {
+ char *info_flags[] = {
"*Capabilities",
@@ -685,20 +685,20 @@ static void print_info_flags(enum logcode f)
};
for (line_len = 0, j = 0; ; j++) {
- char *cap = capabilities[j], *next_cap = cap ? capabilities[j+1] : NULL;
- int cap_len = cap && *cap != '*' ? strlen(cap) : 1000;
- int need_comma = next_cap && *next_cap != '*' ? 1 : 0;
- if (line_len && line_len + 1 + cap_len + need_comma >= (int)sizeof line_buf) {
+ char *str = info_flags[j], *next_nfo = str ? info_flags[j+1] : NULL;
+ int str_len = str && *str != '*' ? strlen(str) : 1000;
+ int need_comma = next_nfo && *next_nfo != '*' ? 1 : 0;
+ if (line_len && line_len + 1 + str_len + need_comma >= (int)sizeof line_buf) {
rprintf(f, " %s\n", line_buf);
line_len = 0;
}
- if (!cap)
+ if (!str)
break;
- if (*cap == '*') {
- rprintf(f, "%s:\n", cap+1);
+ if (*str == '*') {
+ rprintf(f, "%s:\n", str+1);
continue;
}
- line_len += snprintf(line_buf+line_len, sizeof line_buf - line_len, " %s%s", cap, need_comma ? "," : "");
+ line_len += snprintf(line_buf+line_len, sizeof line_buf - line_len, " %s%s", str, need_comma ? "," : "");
}
}