Revision 945c5ac8 monitor.c

b/monitor.c
3371 3371
    return (typestr != NULL);
3372 3372
}
3373 3373

  
3374
static const mon_cmd_t *monitor_find_command(const char *cmdname)
3374
static const mon_cmd_t *search_dispatch_table(const mon_cmd_t *disp_table,
3375
                                              const char *cmdname)
3375 3376
{
3376 3377
    const mon_cmd_t *cmd;
3377 3378

  
3378
    for (cmd = mon_cmds; cmd->name != NULL; cmd++) {
3379
    for (cmd = disp_table; cmd->name != NULL; cmd++) {
3379 3380
        if (compare_cmd(cmdname, cmd->name)) {
3380 3381
            return cmd;
3381 3382
        }
......
3384 3385
    return NULL;
3385 3386
}
3386 3387

  
3388
static const mon_cmd_t *monitor_find_command(const char *cmdname)
3389
{
3390
    return search_dispatch_table(mon_cmds, cmdname);
3391
}
3392

  
3387 3393
static const mon_cmd_t *monitor_parse_command(Monitor *mon,
3388 3394
                                              const char *cmdline,
3389 3395
                                              QDict *qdict)

Also available in: Unified diff