use a more-correct integer type, and silence 64-bit warnings as a bonus
[musl] / src / errno / __errno_location.c
1 #include <errno.h>
2 #include "libc.h"
3
4 #undef errno
5 int errno;
6
7 int *__errno_location(void)
8 {
9         if (libc.errno_location) return libc.errno_location();
10         return &errno;
11 }