From 2bb8d8d9b248208dc8c11c7b7089acb70cd988b5 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 17 Jul 2018 03:06:33 +0900 Subject: [PATCH] process-util: do not hide global variable Suggested by LGTM. --- src/basic/process-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.47.3