factory: getchar() returns integer not char

This commit is contained in:
Mattias Walström
2024-02-23 14:01:23 +01:00
parent caea3132c9
commit 30e2a814eb
+2 -2
View File
@@ -13,10 +13,10 @@
#define RESETME "/mnt/cfg/infix/.reset"
#define touch(f) mknod((f), S_IFREG|0644, 0)
char rawgetch(void)
int rawgetch(void)
{
struct termios saved, c;
char key;
int key;
if (tcgetattr(fileno(stdin), &saved) < 0)
return -1;