From 5e1a8a258e134ceae256cbd0ed622ebd4e7f5e43 Mon Sep 17 00:00:00 2001 From: Andrew Vagin Date: Tue, 2 Jun 2015 14:18:00 +0300 Subject: [PATCH] zdtm/ptrace_sic: set types for function arguments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I've updated Mr Jenkins to fc22 and can't compile zdtm tests: cc -g -O2 -Wall -Werror -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -iquote ../../lib/arch/x86/include -I../../lib ptrace_sig.c ../../lib/libzdtmtst.a -o ptrace_sig ptrace_sig.c: In function ‘child’: ptrace_sig.c:33:5: error: type of ‘fd’ defaults to ‘int’ [-Werror=implicit-int] int child(fd) Reported-by: Mr Jenkins Signed-off-by: Andrew Vagin Signed-off-by: Pavel Emelyanov --- test/zdtm/live/static/ptrace_sig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/zdtm/live/static/ptrace_sig.c b/test/zdtm/live/static/ptrace_sig.c index 83dbf02af..0058e46e4 100644 --- a/test/zdtm/live/static/ptrace_sig.c +++ b/test/zdtm/live/static/ptrace_sig.c @@ -30,7 +30,7 @@ void sig_chld_handler(int signo) test_msg("Receive signal %d\n", signo); } -int child(fd) +int child(int fd) { int ret = 0; struct sigaction act = {