summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2021-02-28 13:19:20 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2021-02-28 13:25:37 -0800
commit7c7dc5ea3a8f7fca0c2696e434938c1048f9e66d (patch)
treec5d432b155a9b00b1c7e91d0f6c69702045dedef /lib
parentafe372f33a5dd31bcca34dc4d73e2c092447635f (diff)
downloadpaxutils-7c7dc5ea3a8f7fca0c2696e434938c1048f9e66d.tar.gz
Omit ‘inline’
With today’s compilers ‘inline’ is typically not needed for performance (at least the way GNU Tar uses it) and it gets in the way of portability. Some compilers ignore ‘inline’ and some inline even without ‘inline’, and when inlining is haphazard GNU Tar can link on your GNU/Linux host but not link on Solaris. Better to have it not link everywhere so these problems are caught before porting. * configure.ac: Omit AC_C_INLINE; no longer needed here. * lib/system.h (sys_reset_uid_gid): No longer inline.
Diffstat (limited to 'lib')
-rw-r--r--lib/system.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system.h b/lib/system.h
index 6acefd7..92b2462 100644
--- a/lib/system.h
+++ b/lib/system.h
@@ -470,7 +470,7 @@ char *getenv ();
# define SET_BINARY_MODE(arc)
# define TTY_NAME "/dev/tty"
# include <paxlib.h>
-static inline char const *
+static char const *
sys_reset_uid_gid (void)
{
uid_t uid = getuid ();