From b6ba12c7290417e9d025342087718c43b8e60c15 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 17 Oct 2011 23:13:51 +0200 Subject: Prevent clang errors about promoted type incompatibilities of K&R function parameters. --- soltools/mkdepend/include.c | 6 +----- soltools/mkdepend/parse.c | 8 +------- soltools/mkdepend/pr.c | 9 +-------- 3 files changed, 3 insertions(+), 20 deletions(-) (limited to 'soltools/mkdepend') diff --git a/soltools/mkdepend/include.c b/soltools/mkdepend/include.c index ac79e84cc984..dbdd1cffeb32 100644 --- a/soltools/mkdepend/include.c +++ b/soltools/mkdepend/include.c @@ -45,11 +45,7 @@ extern char *notdotdot[ ]; extern boolean show_where_not; extern boolean warn_multiple; -struct inclist *inc_path(file, include, dot, incCollection) - register char *file, - *include; - boolean dot; - struct IncludesCollection* incCollection; +struct inclist *inc_path(register char *file, register char *include, boolean dot, struct IncludesCollection* incCollection) { static char path[ BUFSIZ ]; register char **pp, *p; diff --git a/soltools/mkdepend/parse.c b/soltools/mkdepend/parse.c index a63e481b6cdd..939155aa3b83 100644 --- a/soltools/mkdepend/parse.c +++ b/soltools/mkdepend/parse.c @@ -41,13 +41,7 @@ int zero_value(register char *exp, register struct filepointer *filep, extern char *directives[]; extern struct symhash *maininclist; -int find_includes(filep, file, file_red, recursion, failOK, incCollection, symbols) - struct filepointer *filep; - struct inclist *file, *file_red; - int recursion; - boolean failOK; - struct IncludesCollection* incCollection; - struct symhash *symbols; +int find_includes(struct filepointer *filep, struct inclist *file, struct inclist *file_red, int recursion, boolean failOK, struct IncludesCollection* incCollection, struct symhash *symbols) { register char *line; register int type; diff --git a/soltools/mkdepend/pr.c b/soltools/mkdepend/pr.c index 37bf3a2af035..082e312ed230 100644 --- a/soltools/mkdepend/pr.c +++ b/soltools/mkdepend/pr.c @@ -40,14 +40,7 @@ extern boolean printed; extern boolean verbose; extern boolean show_where_not; -void add_include(filep, file, file_red, include, dot, failOK, incCollection, symbols) - struct filepointer *filep; - struct inclist *file, *file_red; - char *include; - boolean dot; - boolean failOK; - struct IncludesCollection* incCollection; - struct symhash *symbols; +void add_include(struct filepointer *filep, struct inclist *file, struct inclist *file_red, char *include, boolean dot, boolean failOK, struct IncludesCollection* incCollection, struct symhash *symbols) { register struct inclist *newfile; register struct filepointer *content; -- cgit