summaryrefslogtreecommitdiff
path: root/ratatox.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-09-15 11:38:36 +0100
committersin <sin@2f30.org>2014-09-15 11:38:36 +0100
commitec057b18c29c00d5686dd6c2749e490c4b0e5749 (patch)
tree17ef3e60fe25e5633a24d621bfbff2dd6b353e2b /ratatox.c
parent10466e4400fa3a6a8c80220547409beae60c2bab (diff)
Rename `helpstr' to `usage'
Diffstat (limited to 'ratatox.c')
-rw-r--r--ratatox.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ratatox.c b/ratatox.c
index 0412a75..6ad5200 100644
--- a/ratatox.c
+++ b/ratatox.c
@@ -569,11 +569,11 @@ friendload(void)
struct cmd {
const char *cmd;
int (*cb)(char *, size_t);
- const char *helpstr;
+ const char *usage;
} cmds[] = {
- { .cmd = "a", .cb = doaccept, .helpstr = "usage: a [ID]\tAccept or list pending requests\n" },
- { .cmd = "f", .cb = dofriend, .helpstr = "usage: f ID\tSend friend request to ID\n" },
- { .cmd = "h", .cb = dohelp, .helpstr = NULL },
+ { .cmd = "a", .cb = doaccept, .usage = "usage: a [ID]\tAccept or list pending requests\n" },
+ { .cmd = "f", .cb = dofriend, .usage = "usage: f ID\tSend friend request to ID\n" },
+ { .cmd = "h", .cb = dohelp, .usage = NULL },
};
static int
@@ -657,8 +657,8 @@ dohelp(char *cmd, size_t sz)
size_t i;
for (i = 0; i < LEN(cmds); i++)
- if (cmds[i].helpstr)
- printf("%s", cmds[i].helpstr);
+ if (cmds[i].usage)
+ printf("%s", cmds[i].usage);
return 0;
}