@@ -77,8 +77,8 @@ extern "C" {
77
77
* LOGGING / MACROS
78
78
******************************************************************************/
79
79
80
- #ifndef STATUS
81
- #define STATUS __attribute__((warn_unused_result)) int
80
+ #ifndef status_t
81
+ #define status_t __attribute__((warn_unused_result)) int
82
82
#endif
83
83
84
84
/** Terminal ANSI colors */
@@ -300,9 +300,9 @@ char **list_files(const char *path, int *num_files);
300
300
void list_files_free (char * * data , const int n );
301
301
char * file_read (const char * fp );
302
302
void skip_line (FILE * fp );
303
- STATUS file_exists (const char * fp );
304
- STATUS file_rows (const char * fp );
305
- STATUS file_copy (const char * src , const char * dest );
303
+ status_t file_exists (const char * fp );
304
+ status_t file_rows (const char * fp );
305
+ status_t file_copy (const char * src , const char * dest );
306
306
307
307
/*******************************************************************************
308
308
* DATA
@@ -546,15 +546,15 @@ typedef struct tcp_client_t {
546
546
int (* loop_cb )(struct tcp_client_t * );
547
547
} tcp_client_t ;
548
548
549
- STATUS ip_port_info (const int sockfd , char * ip , int * port );
549
+ status_t ip_port_info (const int sockfd , char * ip , int * port );
550
550
551
- STATUS tcp_server_setup (tcp_server_t * server , const int port );
552
- STATUS tcp_server_loop (tcp_server_t * server );
551
+ status_t tcp_server_setup (tcp_server_t * server , const int port );
552
+ status_t tcp_server_loop (tcp_server_t * server );
553
553
554
- STATUS tcp_client_setup (tcp_client_t * client ,
554
+ status_t tcp_client_setup (tcp_client_t * client ,
555
555
const char * server_ip ,
556
556
const int server_port );
557
- STATUS tcp_client_loop (tcp_client_t * client );
557
+ status_t tcp_client_loop (tcp_client_t * client );
558
558
559
559
/*******************************************************************************
560
560
* MATHS
0 commit comments