=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-source-file.c,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/tmux/cmd-source-file.c 2009/07/13 23:11:35 1.2 --- src/usr.bin/tmux/cmd-source-file.c 2009/07/26 12:58:44 1.3 *************** *** 1,4 **** ! /* $OpenBSD: cmd-source-file.c,v 1.2 2009/07/13 23:11:35 nicm Exp $ */ /* * Copyright (c) 2008 Tiago Cunha --- 1,4 ---- ! /* $OpenBSD: cmd-source-file.c,v 1.3 2009/07/26 12:58:44 nicm Exp $ */ /* * Copyright (c) 2008 Tiago Cunha *************** *** 26,33 **** int cmd_source_file_parse(struct cmd *, int, char **, char **); int cmd_source_file_exec(struct cmd *, struct cmd_ctx *); - void cmd_source_file_send(struct cmd *, struct buffer *); - void cmd_source_file_recv(struct cmd *, struct buffer *); void cmd_source_file_free(struct cmd *); void cmd_source_file_init(struct cmd *, int); size_t cmd_source_file_print(struct cmd *, char *, size_t); --- 26,31 ---- *************** *** 43,50 **** cmd_source_file_init, cmd_source_file_parse, cmd_source_file_exec, - cmd_source_file_send, - cmd_source_file_recv, cmd_source_file_free, cmd_source_file_print }; --- 41,46 ---- *************** *** 101,125 **** } return (0); - } - - void - cmd_source_file_send(struct cmd *self, struct buffer *b) - { - struct cmd_source_file_data *data = self->data; - - buffer_write(b, data, sizeof *data); - cmd_send_string(b, data->path); - } - - void - cmd_source_file_recv(struct cmd *self, struct buffer *b) - { - struct cmd_source_file_data *data; - - self->data = data = xmalloc(sizeof *data); - buffer_read(b, data, sizeof *data); - data->path = cmd_recv_string(b); } void --- 97,102 ----