]> granicus.if.org Git - strace/commitdiff
Simplify tprintf() declaration
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 7 Sep 2010 01:13:13 +0000 (01:13 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 9 Feb 2011 00:03:11 +0000 (00:03 +0000)
* defs.h (tprintf): Simplify declaration.

defs.h

diff --git a/defs.h b/defs.h
index 6bf45444f186ed0f44cdae2bd4aa1c60c67ab302..bccffbc3e5e5643bf8ccd00c1724b1dce68df49b 100644 (file)
--- a/defs.h
+++ b/defs.h
@@ -619,12 +619,11 @@ extern int proc_open(struct tcb *tcp, int attaching);
 #define printtv_special(tcp, addr)     \
        printtv_bitness((tcp), (addr), BITNESS_CURRENT, 1)
 
-#ifdef __GNUC__
 extern void tprintf(const char *fmt, ...)
-       __attribute__ ((format (printf, 1, 2)));
-#else
-extern void tprintf(const char *fmt, ...);
+#ifdef __GNUC__
+       __attribute__ ((format (printf, 1, 2)))
 #endif
+       ;
 
 #ifndef HAVE_STRERROR
 const char *strerror(int);