From 17532f2153ef98c14b774dd89fa63063bac36123 Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Fri, 27 Sep 2024 22:53:12 +0200 Subject: [PATCH] c error value --- src_c/hat/buff.h | 2 +- src_c/hat/ht.h | 2 +- src_c/hat/json.h | 2 +- src_c/hat/socket.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src_c/hat/buff.h b/src_c/hat/buff.h index 34581d1..08e81fa 100644 --- a/src_c/hat/buff.h +++ b/src_c/hat/buff.h @@ -18,7 +18,7 @@ #include #define HAT_BUFF_SUCCESS 0 -#define HAT_BUFF_ERROR 1 +#define HAT_BUFF_ERROR (-1) #ifdef __cplusplus extern "C" { diff --git a/src_c/hat/ht.h b/src_c/hat/ht.h index 8047c27..def58aa 100644 --- a/src_c/hat/ht.h +++ b/src_c/hat/ht.h @@ -13,7 +13,7 @@ #include "allocator.h" #define HAT_HT_SUCCESS 0 -#define HAT_HT_ERROR 1 +#define HAT_HT_ERROR (-1) #ifdef __cplusplus extern "C" { diff --git a/src_c/hat/json.h b/src_c/hat/json.h index d7b80b9..0925fde 100644 --- a/src_c/hat/json.h +++ b/src_c/hat/json.h @@ -11,7 +11,7 @@ #endif #define HAT_JSON_SUCCESS 0 -#define HAT_JSON_ERROR 1 +#define HAT_JSON_ERROR (-1) #define HAT_JSON_TOKEN_NULL 0 #define HAT_JSON_TOKEN_BOOL 1 diff --git a/src_c/hat/socket.h b/src_c/hat/socket.h index 2c25d8d..cef7aa9 100644 --- a/src_c/hat/socket.h +++ b/src_c/hat/socket.h @@ -18,7 +18,7 @@ #include "buff.h" #define HAT_SOCKET_SUCCESS 0 -#define HAT_SOCKET_ERROR 1 +#define HAT_SOCKET_ERROR (-1) #define HAT_SOCKET_TYPE_IP4_TCP 0 #define HAT_SOCKET_TYPE_IP4_UDP 1