version 1.11, 2012/07/10 11:53:01 |
version 1.12, 2012/07/11 07:10:15 |
|
|
}; |
}; |
|
|
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
enum cmd_retval |
cmd_list_clients_exec(struct cmd *self, struct cmd_ctx *ctx) |
cmd_list_clients_exec(struct cmd *self, struct cmd_ctx *ctx) |
{ |
{ |
struct args *args = self->args; |
struct args *args = self->args; |
|
|
if (args_has(args, 't')) { |
if (args_has(args, 't')) { |
s = cmd_find_session(ctx, args_get(args, 't'), 0); |
s = cmd_find_session(ctx, args_get(args, 't'), 0); |
if (s == NULL) |
if (s == NULL) |
return (-1); |
return (CMD_RETURN_ERROR); |
} else |
} else |
s = NULL; |
s = NULL; |
|
|
|
|
format_free(ft); |
format_free(ft); |
} |
} |
|
|
return (0); |
return (CMD_RETURN_NORMAL); |
} |
} |