Tags: clan/runit
Tags
fix compilation error(s): -Wincompatible-pointer-types reported by gcc 15 buffer_put.c:75:20: error: passing argument 1 of‘allwrite’ from incompatible pointer type [-Wincompatible-pointer-types] buffer_put.c:50:5: error: conflicting types for ‘buffer_put’; have‘int(buffer *, char *, unsigned int)’ ... both read & write are used in buffer init, so remove const (for write) from prototype
fix compilation error(s): -Wincompatible-pointer-types reported by gcc 15 buffer_put.c:75:20: error: passing argument 1 of‘allwrite’ from incompatible pointer type [-Wincompatible-pointer-types] buffer_put.c:50:5: error: conflicting types for ‘buffer_put’; have‘int(buffer *, char *, unsigned int)’ ... both read & write are used in buffer init, so remove const (for write) from prototype
fix compilation error(s): -Wincompatible-pointer-types reported by gcc 15 buffer_put.c:75:20: error: passing argument 1 of‘allwrite’ from incompatible pointer type [-Wincompatible-pointer-types] buffer_put.c:50:5: error: conflicting types for ‘buffer_put’; have‘int(buffer *, char *, unsigned int)’ ... both read & write are used in buffer init, so remove const (for write) from prototype
add sleep_microseconds to encapsulate (u|nano)sleep man 3 usleep: POSIX.1-2001 declares it obsolete, suggesting nanosleep(2) instead. Removed in POSIX.1-2008. we use a feature test macro to select usleep or naosleep, while debian's patch replace usleep with nanosleep. links of debian's patches is: https://salsa.debian.org/debian/runit/-/tree/master/debian/patches 0017-fix-replace-obsolete-usleep-with-nanosleep.patch