From b8c3a09c6f3e293aa261586195aa73f0320d94df Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Wed, 20 Mar 2024 19:00:46 +0100 Subject: [PATCH] Fix a macro redefinition warning The C library stdio.h header file already defines the EOF macro. Rename our macro to avoid the conflict. --- src/mares_iconhd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mares_iconhd.c b/src/mares_iconhd.c index c8dd0b0..55d71c9 100644 --- a/src/mares_iconhd.c +++ b/src/mares_iconhd.c @@ -52,7 +52,7 @@ #define MAXRETRIES 4 #define ACK 0xAA -#define EOF 0xEA +#define END 0xEA #define XOR 0xA5 #define CMD_VERSION 0xC2 @@ -236,7 +236,7 @@ mares_iconhd_packet (mares_iconhd_device_t *device, } // Verify the trailer byte. - if (trailer[0] != EOF) { + if (trailer[0] != END) { ERROR (abstract->context, "Unexpected answer byte."); return DC_STATUS_PROTOCOL; }