From 22e7e51007f3a28ded43f6cb8f0ff59a7a691175 Mon Sep 17 00:00:00 2001 From: Trutz Behn Date: Sat, 14 Mar 2015 20:06:48 +0100 Subject: Use __typeof__ to in part avoid replicating function types --- include/strings.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include/strings.h') diff --git a/include/strings.h b/include/strings.h index 02811a3..2a16c60 100644 --- a/include/strings.h +++ b/include/strings.h @@ -14,8 +14,7 @@ extern "C" { || (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE+0 < 700) #undef bcopy #undef bzero -extern void __bcopy_orig(const void *, void *, size_t) - __asm__(__USER_LABEL_PREFIX__ "bcopy"); +__typeof__(bcopy) __bcopy_orig __asm__(__USER_LABEL_PREFIX__ "bcopy"); extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) void bcopy(const void *src, void *dest, size_t n) { @@ -26,8 +25,7 @@ void bcopy(const void *src, void *dest, size_t n) return __bcopy_orig(src, dest, n); } -extern void __bzero_orig(void *, size_t) - __asm__(__USER_LABEL_PREFIX__ "bzero"); +__typeof__(bzero) __bzero_orig __asm__(__USER_LABEL_PREFIX__ "bzero"); extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) void bzero(void *src, size_t n) { -- cgit v1.3