From 10f65048976741ae10dff7a148eb557a2836c37a Mon Sep 17 00:00:00 2001 From: Daniele Forsi IU5HKX Date: Mon, 4 Aug 2025 11:19:15 +0200 Subject: [PATCH] Remove disabled code and change signature Makes getmyline() identical to the other simulators. --- simulators/simft990.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/simulators/simft990.c b/simulators/simft990.c index fa67bc81a..1139f0ee4 100644 --- a/simulators/simft990.c +++ b/simulators/simft990.c @@ -50,24 +50,19 @@ static void load_dat(const char *filename, unsigned char buf[1492]) static unsigned char alldata[1492]; int -getmyline(int fd, char *buf) +getmyline(int fd, unsigned char *buf) { unsigned char c; int i = 0; int n = 0; memset(buf, 0, BUFSIZE); -#if 1 - while (i < 5 && read(fd, &c, 1) > 0) { buf[i++] = c; n++; } -#else - n = read(fd, buf, 5); -#endif printf("n=%d %02x %02x %02x %02x %02x\n", n, buf[0], buf[1], buf[2], buf[3], buf[4]); return n;