diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2016-02-12 16:07:41 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2016-02-12 16:07:41 +0100 |
commit | e48ab2649258c592b25976cd0fcfa12a5312446b (patch) | |
tree | 16c5433ffc6588ed5708dd8e19e569492cf59e44 /call | |
parent | 4bae57d21ad0022cc1955c79e3d91154ec7d9476 (diff) |
call: Remove unused function writemsg().
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'call')
-rw-r--r-- | call/call.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/call/call.c b/call/call.c index 8634d34..9e29113 100644 --- a/call/call.c +++ b/call/call.c @@ -1674,36 +1674,6 @@ int readoutg(t_win * win_out, wint * wintab, menuitem * top, char buf[], wrefresh(win_out->ptr); return 0; } -void writemsg(char fname[], char caller[]) -{ - char text_row[255]; - char *text_ptr; - char buf[255]; - FILE *f = fopen(fname, "r"); - - if (f == NULL) { - perror(fname); - return; - } - do { - if (fgets(text_row, 255, f) != 0) { - text_row[strlen(text_row) - 1] = '\r'; - text_ptr = strchr(text_row, '$'); - if (text_ptr != NULL) { - strcpy(buf, text_ptr + 2); - switch (*(text_ptr + 1)) { - case 'c': - { - strcpy(text_ptr, caller); - strcat(text_ptr, buf); - } - } - } - write(fd, text_row, strlen(text_row)); - } - } - while (!feof(f)); -} void remotecommand(char buf[], int bytes) { |