summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-09-27 11:35:31 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-09-27 11:35:31 +0200
commit67bcb9ab2bcd5c3ef89d05b17622ad4b1aaeb4ac (patch)
tree3156f48d1b08179a48d475d4b8242171b3f08443
parentf82675af6510a48945237869b53c8fa82ba98933 (diff)
downloadcmumble-67bcb9ab2bcd5c3ef89d05b17622ad4b1aaeb4ac.tar.gz
cmumble-67bcb9ab2bcd5c3ef89d05b17622ad4b1aaeb4ac.tar.bz2
cmumble-67bcb9ab2bcd5c3ef89d05b17622ad4b1aaeb4ac.zip
Rename: cmumble_command_{complete=>expand_shortcut}
-rw-r--r--src/commands.c2
-rw-r--r--src/commands.h2
-rw-r--r--src/io.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/commands.c b/src/commands.c
index d6c12a9..b89c5a4 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -69,7 +69,7 @@ static const struct cmumble_command commands[] = {
};
const char *
-cmumble_command_complete(const char *text)
+cmumble_command_expand_shortcut(const char *text)
{
int i = 0;
int found_index = -1;
diff --git a/src/commands.h b/src/commands.h
index 1c56860..6ea8c67 100644
--- a/src/commands.h
+++ b/src/commands.h
@@ -13,6 +13,6 @@ void
cmumble_commands_init(struct cmumble_context *ctx);
const char *
-cmumble_command_complete(const char *text);
+cmumble_command_expand_shortcut(const char *text);
#endif /* _COMMANDS_H_ */
diff --git a/src/io.c b/src/io.c
index 25b3af6..e3b9bcb 100644
--- a/src/io.c
+++ b/src/io.c
@@ -95,7 +95,7 @@ process_line(char *line)
}
cmd = skip_whitespace(line);
- cmd = cmumble_command_complete(cmd);
+ cmd = cmumble_command_expand_shortcut(cmd);
for (i = 0; ctx->commands[i].name; ++i) {
if (strncmp(cmd, ctx->commands[i].name,