use size_t instead int to avoid compile warning

use_iouring
YuQing 2025-08-21 20:52:35 +08:00
parent 8e51f4de3e
commit d59da03d60
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
Version 1.78 2025-08-20 Version 1.79 2025-08-20
* logger.h export function log_it_ex3
Version 1.78 2025-08-07
* getIpaddrByName: normalize ip addr when input addr is IPv4 or IPv6 * getIpaddrByName: normalize ip addr when input addr is IPv4 or IPv6
* add files: spinlock.[hc] * add files: spinlock.[hc]
* shared_func.[hc]: change int2buff, buff2int etc. functions to static inline * shared_func.[hc]: change int2buff, buff2int etc. functions to static inline

View File

@ -1632,7 +1632,7 @@ static inline int fc_ltostr(int64_t n, char *buff)
static inline size_t fc_strlcpy(char *dest, const char *src, const size_t size) static inline size_t fc_strlcpy(char *dest, const char *src, const size_t size)
{ {
int len; size_t len;
len = strlen(src); len = strlen(src);
if (len < size) { if (len < size) {