=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-if-shell.c,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/tmux/cmd-if-shell.c 2009/07/13 23:11:35 1.2 --- src/usr.bin/tmux/cmd-if-shell.c 2009/07/26 12:58:44 1.3 *************** *** 1,4 **** ! /* $OpenBSD: cmd-if-shell.c,v 1.2 2009/07/13 23:11:35 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha --- 1,4 ---- ! /* $OpenBSD: cmd-if-shell.c,v 1.3 2009/07/26 12:58:44 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha *************** *** 30,37 **** int cmd_if_shell_parse(struct cmd *, int, char **, char **); int cmd_if_shell_exec(struct cmd *, struct cmd_ctx *); - void cmd_if_shell_send(struct cmd *, struct buffer *); - void cmd_if_shell_recv(struct cmd *, struct buffer *); void cmd_if_shell_free(struct cmd *); void cmd_if_shell_init(struct cmd *, int); size_t cmd_if_shell_print(struct cmd *, char *, size_t); --- 30,35 ---- *************** *** 48,55 **** cmd_if_shell_init, cmd_if_shell_parse, cmd_if_shell_exec, - cmd_if_shell_send, - cmd_if_shell_recv, cmd_if_shell_free, cmd_if_shell_print }; --- 46,51 ---- *************** *** 124,150 **** cmd_list_free(cmdlist); return (0); - } - - void - cmd_if_shell_send(struct cmd *self, struct buffer *b) - { - struct cmd_if_shell_data *data = self->data; - - buffer_write(b, data, sizeof *data); - cmd_send_string(b, data->cmd); - cmd_send_string(b, data->sh_cmd); - } - - void - cmd_if_shell_recv(struct cmd *self, struct buffer *b) - { - struct cmd_if_shell_data *data; - - self->data = data = xmalloc(sizeof *data); - buffer_read(b, data, sizeof *data); - data->cmd = cmd_recv_string(b); - data->sh_cmd = cmd_recv_string(b); } void --- 120,125 ----