From ebbea4043aa7c7f200e4f56c3bfa42f5c31f2e03 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 14 Mar 2018 02:14:58 +0100 Subject: [PATCH] Trivial: Rename completion_result variables. Most completers call the completion result pointer "cr", but some use "result" instead. Let's be consistent and rename those to cr. --- audioc.c | 6 +++--- client.c | 6 +++--- play.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/audioc.c b/audioc.c index d9478ab9..e1a225d7 100644 --- a/audioc.c +++ b/audioc.c @@ -95,15 +95,15 @@ I9E_DUMMY_COMPLETER(tasks); I9E_DUMMY_COMPLETER(term); static void help_completer(struct i9e_completion_info *ci, - struct i9e_completion_result *result) + struct i9e_completion_result *cr) { char *opts[] = {LSG_AUDIOD_CMD_HELP_OPTS, NULL}; if (ci->word[0] == '-') { - i9e_complete_option(opts, ci, result); + i9e_complete_option(opts, ci, cr); return; } - result->matches = i9e_complete_commands(ci->word, audiod_completers); + cr->matches = i9e_complete_commands(ci->word, audiod_completers); } static void version_completer(struct i9e_completion_info *ci, diff --git a/client.c b/client.c index c43ebe16..bc5132b6 100644 --- a/client.c +++ b/client.c @@ -248,15 +248,15 @@ I9E_DUMMY_COMPLETER(tasks); static struct i9e_completer completers[]; static void help_completer(struct i9e_completion_info *ci, - struct i9e_completion_result *result) + struct i9e_completion_result *cr) { char *opts[] = {LSG_SERVER_CMD_HELP_OPTS, NULL}; if (ci->word[0] == '-') { - i9e_complete_option(opts, ci, result); + i9e_complete_option(opts, ci, cr); return; } - result->matches = i9e_complete_commands(ci->word, completers); + cr->matches = i9e_complete_commands(ci->word, completers); } static void stat_completer(struct i9e_completion_info *ci, diff --git a/play.c b/play.c index 876fa9c2..233da700 100644 --- a/play.c +++ b/play.c @@ -707,15 +707,15 @@ I9E_DUMMY_COMPLETER(quit); I9E_DUMMY_COMPLETER(ff); static void help_completer(struct i9e_completion_info *ci, - struct i9e_completion_result *result) + struct i9e_completion_result *cr) { char *opts[] = {LSG_PLAY_CMD_HELP_OPTS, NULL}; if (ci->word[0] == '-') { - i9e_complete_option(opts, ci, result); + i9e_complete_option(opts, ci, cr); return; } - result->matches = i9e_complete_commands(ci->word, pp_completers); + cr->matches = i9e_complete_commands(ci->word, pp_completers); } static struct i9e_completer pp_completers[] = { -- 2.39.5