]> granicus.if.org Git - strace/commitdiff
sh: Fix compilation warning in do_pipe due to missing prototype
authorCarmelo AMOROSO <carmelo.amoroso@st.com>
Mon, 13 Dec 2010 07:48:28 +0000 (08:48 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 14 Dec 2010 00:14:33 +0000 (00:14 +0000)
* defs.h [SH]: Make getrval2 prototype visible to do_pipe
and fix the following compiler warning:
.../net.c: In function 'do_pipe':
.../net.c:1632: warning: implicit declaration of function 'getrval2'
.../net.c:1632: warning: format '%lu' expects type 'long unsigned int',
but argument 3 has type 'int'

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
defs.h

diff --git a/defs.h b/defs.h
index 0f516b6e7ac9eb590f8adbcc59a667bb95ec52df..d09236156ecdc27d280f2ca56c81aba274f562d1 100644 (file)
--- a/defs.h
+++ b/defs.h
@@ -601,7 +601,8 @@ extern void tv_div(struct timeval *, struct timeval *, int);
 #ifdef SUNOS4
 extern int fixvfork(struct tcb *);
 #endif
-#if !(defined(LINUX) && !defined(SPARC) && !defined(SPARC64) && !defined(IA64))
+#if !(defined(LINUX) && !defined(SPARC) && !defined(SPARC64) && !defined(IA64) \
+       && !defined(SH))
 extern long getrval2(struct tcb *);
 #endif
 #ifdef USE_PROCFS