tree-wide: use gcc attribute macros where appropriate

We have these macros already, hence use them.
This commit is contained in:
Lennart Poettering
2018-12-03 13:28:26 +01:00
parent 7934dede41
commit d34dae1817
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1172,7 +1172,7 @@ void reset_cached_pid(void) {
* 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 void* __dso_handle __attribute__ ((__weak__));
extern void* __dso_handle _weak_;
pid_t getpid_cached(void) {
static bool installed = false;