Fix a macro redefinition warning

The C library stdio.h header file already defines the EOF macro. Rename
our macro to avoid the conflict.
This commit is contained in:
Jef Driesen 2024-03-20 19:00:46 +01:00
parent 6903a66cc5
commit b8c3a09c6f

View File

@ -52,7 +52,7 @@
#define MAXRETRIES 4 #define MAXRETRIES 4
#define ACK 0xAA #define ACK 0xAA
#define EOF 0xEA #define END 0xEA
#define XOR 0xA5 #define XOR 0xA5
#define CMD_VERSION 0xC2 #define CMD_VERSION 0xC2
@ -236,7 +236,7 @@ mares_iconhd_packet (mares_iconhd_device_t *device,
} }
// Verify the trailer byte. // Verify the trailer byte.
if (trailer[0] != EOF) { if (trailer[0] != END) {
ERROR (abstract->context, "Unexpected answer byte."); ERROR (abstract->context, "Unexpected answer byte.");
return DC_STATUS_PROTOCOL; return DC_STATUS_PROTOCOL;
} }