From 99881d6250397b7f3c8dc0c88365f1f804ba29a6 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Fri, 11 Nov 2011 10:32:27 +0100 Subject: [PATCH] Redefine the packet size explicitly. The packet size for the nemo and puck backends happens to be identical. But the value for the nemo backend is truly fixed, while the value for the puck backend can be adjusted. To avoid breaking the nemo backend when changing the default value, we redefine the packet size explicitly to the correct value. --- src/mares_nemo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mares_nemo.c b/src/mares_nemo.c index eb2cbcb..40c25dc 100644 --- a/src/mares_nemo.c +++ b/src/mares_nemo.c @@ -35,6 +35,10 @@ rc == -1 ? DEVICE_STATUS_IO : DEVICE_STATUS_TIMEOUT \ ) +#ifdef PACKETSIZE +#undef PACKETSIZE /* Override the common value. */ +#endif + #define MEMORYSIZE 0x4000 #define PACKETSIZE 0x20