=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-show-messages.c,v retrieving revision 1.5 retrieving revision 1.6 diff -c -r1.5 -r1.6 *** src/usr.bin/tmux/cmd-show-messages.c 2013/03/24 09:27:20 1.5 --- src/usr.bin/tmux/cmd-show-messages.c 2013/03/24 09:54:10 1.6 *************** *** 1,4 **** ! /* $OpenBSD: cmd-show-messages.c,v 1.5 2013/03/24 09:27:20 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-show-messages.c,v 1.6 2013/03/24 09:54:10 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott *************** *** 27,33 **** * Show client message log. */ ! enum cmd_retval cmd_show_messages_exec(struct cmd *, struct cmd_ctx *); const struct cmd_entry cmd_show_messages_entry = { "show-messages", "showmsgs", --- 27,33 ---- * Show client message log. */ ! enum cmd_retval cmd_show_messages_exec(struct cmd *, struct cmd_q *); const struct cmd_entry cmd_show_messages_entry = { "show-messages", "showmsgs", *************** *** 40,46 **** }; enum cmd_retval ! cmd_show_messages_exec(struct cmd *self, struct cmd_ctx *ctx) { struct args *args = self->args; struct client *c; --- 40,46 ---- }; enum cmd_retval ! cmd_show_messages_exec(struct cmd *self, struct cmd_q *cmdq) { struct args *args = self->args; struct client *c; *************** *** 48,54 **** char *tim; u_int i; ! if ((c = cmd_find_client(ctx, args_get(args, 't'), 0)) == NULL) return (CMD_RETURN_ERROR); for (i = 0; i < ARRAY_LENGTH(&c->message_log); i++) { --- 48,54 ---- char *tim; u_int i; ! if ((c = cmd_find_client(cmdq, args_get(args, 't'), 0)) == NULL) return (CMD_RETURN_ERROR); for (i = 0; i < ARRAY_LENGTH(&c->message_log); i++) { *************** *** 57,63 **** tim = ctime(&msg->msg_time); *strchr(tim, '\n') = '\0'; ! ctx->print(ctx, "%s %s", tim, msg->msg); } return (CMD_RETURN_NORMAL); --- 57,63 ---- tim = ctime(&msg->msg_time); *strchr(tim, '\n') = '\0'; ! cmdq_print(cmdq, "%s %s", tim, msg->msg); } return (CMD_RETURN_NORMAL);