aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 5b3b1d0f..f6d56bb4 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -1128,9 +1128,9 @@ static struct cmd_results *cmd_scratchpad(int argc, char **argv) {
1128 1128
1129// sort in order of longest->shortest 1129// sort in order of longest->shortest
1130static int compare_set(const void *_l, const void *_r) { 1130static int compare_set(const void *_l, const void *_r) {
1131 struct sway_variable * const *l = _l; 1131 struct sway_variable const *l = _l;
1132 struct sway_variable * const *r = _r; 1132 struct sway_variable const *r = _r;
1133 return strlen((*r)->name) - strlen((*l)->name); 1133 return strlen(r->name) - strlen(l->name);
1134} 1134}
1135 1135
1136static struct cmd_results *cmd_set(int argc, char **argv) { 1136static struct cmd_results *cmd_set(int argc, char **argv) {