From 95e5f8a898c181337f9b642fbe141c56f79e85b6 Mon Sep 17 00:00:00 2001 From: c vw Date: Sun, 5 Dec 2021 12:42:08 +0100 Subject: [PATCH] another typo --- client_server.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client_server.h b/client_server.h index 9f7b3b9..c3a1ec0 100644 --- a/client_server.h +++ b/client_server.h @@ -30,7 +30,7 @@ // Assume that double data is between -200 and 200, // convert to uint16 via uint16 = 100.0*(double+200.0) (result in the range 0 to 40000) // -#define htond(X) htons((uint16_6) ((X+200.0)*100.0) ) +#define htond(X) htons((uint16_t) ((X+200.0)*100.0) ) #define ntohd(X) 0.01*ntohs(X)-200.0 typedef enum { -- 2.45.2