diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-07-16 20:06:33 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-07-16 20:06:45 +0200 |
commit | 2bb8d8d9b248208dc8c11c7b7089acb70cd988b5 (patch) | |
tree | b176edc3912a5765351723e6aeef4df22e675532 /src/basic/process-util.c | |
parent | sysusers,tmpfiles: re-create systemd-network, systemd-resolve and systemd-tim... (diff) | |
download | systemd-2bb8d8d9b248208dc8c11c7b7089acb70cd988b5.tar.xz systemd-2bb8d8d9b248208dc8c11c7b7089acb70cd988b5.zip |
process-util: do not hide global variable
Suggested by LGTM.
Diffstat (limited to 'src/basic/process-util.c')
-rw-r--r-- | src/basic/process-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/process-util.c b/src/basic/process-util.c index 0a4f917cbd..0a5280eb24 100644 --- a/src/basic/process-util.c +++ b/src/basic/process-util.c @@ -1153,7 +1153,7 @@ void reset_cached_pid(void) { /* We use glibc __register_atfork() + __dso_handle directly here, as they are not included in the glibc * headers. __register_atfork() is mostly equivalent to pthread_atfork(), but doesn't require us to link against * libpthread, as it is part of glibc anyway. */ -extern int __register_atfork(void (*prepare) (void), void (*parent) (void), void (*child) (void), void * __dso_handle); +extern int __register_atfork(void (*prepare) (void), void (*parent) (void), void (*child) (void), void *dso_handle); extern void* __dso_handle __attribute__ ((__weak__)); pid_t getpid_cached(void) { |