From: sECuRE Date: Sun, 29 Jul 2007 11:30:00 +0000 (+0000) Subject: fix: c128_perror X-Git-Tag: rgb2rv6~71 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=da3efe196ad2f0e8c451a3540eeaf2df41732c9b;p=c128-kasse fix: c128_perror git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@38 af93e077-1a23-4f1e-9cbe-9382a9d578f5 --- 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 */