From c45a5b7d40260bea279bfad551b3000e6e362a8f Mon Sep 17 00:00:00 2001 From: Un1q32 Date: Fri, 25 Apr 2025 18:00:18 -0400 Subject: [PATCH] fix stuff --- oc2rnet.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/oc2rnet.c b/oc2rnet.c index f57d8bf..a3d4cf9 100644 --- a/oc2rnet.c +++ b/oc2rnet.c @@ -8,11 +8,11 @@ #include #endif -static void cliprinterr(const char *str) { #ifdef CLITEST - fputs(str, stderr); +#define cliprinterr(str) fputs(str, stderr) +#else +#define cliprinterr(str) #endif -} #if defined(__linux__) || defined(__APPLE__) @@ -42,11 +42,11 @@ static uint16_t checksum(void *b, size_t len) { #define ICMP_HEADER_SIZE 8 -static void cliperror(const char *str) { #ifdef CLITEST - perror(str); +#define cliperror(str) perror(str) +#else +#define cliperror(str) #endif -} static ssize_t doPing(uint32_t ip, size_t size, char *data, char *response, uint32_t timeout) {