[libc] fix compiling warning