tRename `helpstr' to `usage' - ratox - FIFO based tox client
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit ec057b18c29c00d5686dd6c2749e490c4b0e5749
 (DIR) parent 10466e4400fa3a6a8c80220547409beae60c2bab
 (HTM) Author: sin <sin@2f30.org>
       Date:   Mon, 15 Sep 2014 11:38:36 +0100
       
       Rename `helpstr' to `usage'
       
       Diffstat:
         M ratatox.c                           |      12 ++++++------
       
       1 file changed, 6 insertions(+), 6 deletions(-)
       ---
 (DIR) diff --git a/ratatox.c b/ratatox.c
       t@@ -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
       t@@ -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;
        }