summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/arguments.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2021-08-21 10:28:06 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2021-08-21 10:28:06 +0000
commitb4a0cc641b4a5e66c24b34e0d97ad8ca533bfad2 (patch)
treea54ad34b885b2c68355222867f01034a98d28dc0 /usr.bin/tmux/arguments.c
parent864a2669afeae1667dbb04c5160d43b271184911 (diff)
Rename a member to match what it will be in future.
Diffstat (limited to 'usr.bin/tmux/arguments.c')
-rw-r--r--usr.bin/tmux/arguments.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/tmux/arguments.c b/usr.bin/tmux/arguments.c
index b38b07446e9..eee3ba749f4 100644
--- a/usr.bin/tmux/arguments.c
+++ b/usr.bin/tmux/arguments.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arguments.c,v 1.40 2021/08/21 08:44:59 nicm Exp $ */
+/* $OpenBSD: arguments.c,v 1.41 2021/08/21 10:28:05 nicm Exp $ */
/*
* Copyright (c) 2010 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -128,7 +128,7 @@ args_free(struct args *args)
RB_REMOVE(args_tree, &args->tree, entry);
TAILQ_FOREACH_SAFE(value, &entry->values, entry, value1) {
TAILQ_REMOVE(&entry->values, value, entry);
- free(value->value);
+ free(value->string);
free(value);
}
free(entry);
@@ -210,7 +210,7 @@ args_print(struct args *args)
args_print_add(&buf, &len, " -%c", entry->flag);
else
args_print_add(&buf, &len, "-%c", entry->flag);
- args_print_add_argument(&buf, &len, value->value);
+ args_print_add_argument(&buf, &len, value->string);
}
}
@@ -299,7 +299,7 @@ args_set(struct args *args, u_char flag, const char *s)
if (s != NULL) {
value = xcalloc(1, sizeof *value);
- value->value = xstrdup(s);
+ value->string = xstrdup(s);
TAILQ_INSERT_TAIL(&entry->values, value, entry);
}
}
@@ -314,7 +314,7 @@ args_get(struct args *args, u_char flag)
return (NULL);
if (TAILQ_EMPTY(&entry->values))
return (NULL);
- return (TAILQ_LAST(&entry->values, args_values)->value);
+ return (TAILQ_LAST(&entry->values, args_values)->string);
}
/* Get first argument. */
@@ -387,7 +387,7 @@ args_strtonum(struct args *args, u_char flag, long long minval,
}
value = TAILQ_LAST(&entry->values, args_values);
- ll = strtonum(value->value, minval, maxval, &errstr);
+ ll = strtonum(value->string, minval, maxval, &errstr);
if (errstr != NULL) {
*cause = xstrdup(errstr);
return (0);
@@ -409,7 +409,7 @@ args_percentage(struct args *args, u_char flag, long long minval,
*cause = xstrdup("missing");
return (0);
}
- value = TAILQ_LAST(&entry->values, args_values)->value;
+ value = TAILQ_LAST(&entry->values, args_values)->string;
return (args_string_percentage(value, minval, maxval, curval, cause));
}