From 6006be038b5e21ace98c70f060540db89a2fa27b Mon Sep 17 00:00:00 2001 From: Mico Micic Date: Mon, 8 May 2023 12:28:14 +0200 Subject: [PATCH] Avoid conversion to 'size_t' from 'int' warnings --- lib/clixon/clixon_string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/clixon/clixon_string.h b/lib/clixon/clixon_string.h index 456972ab..9efb2834 100644 --- a/lib/clixon/clixon_string.h +++ b/lib/clixon/clixon_string.h @@ -76,7 +76,7 @@ typedef struct map_str2str map_str2str; static inline char * strdup4(char *str) { char *dup; - int len; + size_t len; len = align4(strlen(str)+1); if ((dup = (char*) malloc(len)) == NULL) return NULL;