ratox

FIFO based tox client
git clone git://git.2f30.org/ratox
Log | Files | Refs | README | LICENSE

commit ec057b18c29c00d5686dd6c2749e490c4b0e5749
parent 10466e4400fa3a6a8c80220547409beae60c2bab
Author: sin <sin@2f30.org>
Date:   Mon, 15 Sep 2014 11:38:36 +0100

Rename `helpstr' to `usage'

Diffstat:
Mratatox.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git 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; }