mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-10-18 03:29:50 +02:00
Modify setproctitle() to conform to project coding style
Use local getprogname()/setprogname() instead of reimplementing them locally. Use clearenv() if available, not just on glibc. Use bool instead of _Bool. Use paranthesis on sizeof. Fold the SPT_MIN macro into spt_min(). Make spt_init() static. Avoid unnecessary gotos.
This commit is contained in:
@@ -71,7 +71,7 @@ AC_LINK_IFELSE(
|
||||
AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])])
|
||||
|
||||
AC_CHECK_FUNCS([dirfd __fpurge getexecname getline sysconf])
|
||||
AC_CHECK_FUNCS([clearenv dirfd __fpurge getexecname getline sysconf])
|
||||
|
||||
AC_CONFIG_FILES([
|
||||
Makefile
|
||||
|
Reference in New Issue
Block a user