From: Yu Watanabe Date: Mon, 16 Jul 2018 18:06:33 +0000 (+0900) Subject: process-util: do not hide global variable X-Git-Tag: v240~969^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2bb8d8d9b248208dc8c11c7b7089acb70cd988b5;p=thirdparty%2Fsystemd.git process-util: do not hide global variable Suggested by LGTM. --- diff --git a/src/basic/process-util.c b/src/basic/process-util.c index 0a4f917cbd5..0a5280eb242 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) {