From ec057b18c29c00d5686dd6c2749e490c4b0e5749 Mon Sep 17 00:00:00 2001 From: sin Date: Mon, 15 Sep 2014 11:38:36 +0100 Subject: Rename `helpstr' to `usage' --- ratatox.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ratatox.c') 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; } -- cgit v1.2.3