From da3efe196ad2f0e8c451a3540eeaf2df41732c9b Mon Sep 17 00:00:00 2001 From: sECuRE Date: Sun, 29 Jul 2007 11:30:00 +0000 Subject: [PATCH] fix: c128_perror git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@38 af93e077-1a23-4f1e-9cbe-9382a9d578f5 --- general.c | 2 +- kasse.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/general.c b/general.c index 03bc576..5cd4dac 100644 --- a/general.c +++ b/general.c @@ -41,5 +41,5 @@ char * format_euro(char * s, int maxlen, int cent){ } void c128_perror(BYTE c, char *msg) { - printf("\nError (Code %d) while: %s\nOS Error = %s\n", c, msg, _oserror); + printf("\nError (Code %d) while: %s\nOS Error = %d\n", c, msg, _oserror); } diff --git a/kasse.c b/kasse.c index 6b551ca..5326b91 100644 --- a/kasse.c +++ b/kasse.c @@ -38,19 +38,19 @@ void print_log(BYTE n, int einheiten, char *nickname) { Nickname (falls es vom Guthaben abgezogen wird) */ sprintf(print_buffer, "[%d] UHRZEIT - %s - %d - %d - an %s\r\n", items_sold, status[n].item_name, status[n].price, einheiten, (nickname != NULL ? nickname : "Unbekannt")); - c = cbm_open(4, 4, 0, NULL); + c = cbm_open((BYTE)4, (BYTE)4, (BYTE)0, NULL); if (c != 0) { c128_perror(c, "cbm_open(printer)"); save_state(); exit(1); } - c = cbm_write(4, print_buffer, strlen(print_buffer)); + c = cbm_write((BYTE)4, print_buffer, strlen(print_buffer)); if (c != strlen(print_buffer)) { c128_perror(c, "write(printer)"); save_state(); exit(1); } - cbm_close(4); + cbm_close((BYTE)4); } /* Dialog, der einen durch's Abrechnen der Einträge führt */ -- 2.39.5