]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
process-util: do not hide global variable
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 16 Jul 2018 18:06:33 +0000 (03:06 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 16 Jul 2018 18:06:45 +0000 (03:06 +0900)
Suggested by LGTM.

src/basic/process-util.c

index 0a4f917cbd5d5ebaf9d3b63b5f6e2db817dd0333..0a5280eb2420c0bd64b46d84eb470e0628335aa3 100644 (file)
@@ -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) {