]> granicus.if.org Git - procps-ng/commitdiff
library: relocate the typedef used in alloc.h override
authorJim Warner <james.warner@comcast.net>
Sat, 16 Dec 2017 06:00:00 +0000 (00:00 -0600)
committerCraig Small <csmall@enc.com.au>
Sat, 23 Dec 2017 06:41:37 +0000 (17:41 +1100)
There is no longer justification for placing a typedef
employed in overriding that alloc.h message handler in
the procps.h header file. So this commit just moves it
to the alloc.h header file itself where's it's needed!

[ gosh, sure wish i had thought to relocate this guy ]
[ when the changes in the 1st commit shown were made ]

Reference(s):
. most recent related changes
commit 18e5aecd2b61387ebd82c83f6f716e4c8e093272
. place where it *should* have been relocated
commit 2865ded64e72e0bec721dad9b442dab0899ee2b0

Signed-off-by: Jim Warner <james.warner@comcast.net>
proc/alloc.h
proc/procps.h

index 19c91d78b76b6f8464e57fa8a1d8d30838b71344..eedbb2ba9fd22a1b38accc8179c13e5529705704 100644 (file)
@@ -5,6 +5,8 @@
 
 EXTERN_C_BEGIN
 
+typedef void (*message_fn)(const char *__restrict, ...) __attribute__((format(printf,1,2)));
+
  /* change xalloc_err_handler to override the default fprintf(stderr... */
 extern message_fn xalloc_err_handler;
 
index 375d6c692887e5604f3cb5fe7570ef88aad7688d..ec7462803e6cbe97056933d083d68930750217e2 100644 (file)
@@ -87,7 +87,4 @@
 #define HIDDEN_ALIAS(x) extern __typeof(x) x##_direct __attribute__((alias(#x)))
 #endif
 
-
-typedef void (*message_fn)(const char *__restrict, ...) __attribute__((format(printf,1,2)));
-
 #endif