From 48696f7e724923564dd6c8908afdb7c9d4893f02 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Fri, 19 Oct 2018 18:03:51 +0200 Subject: Make clang happy ps.c:1875:9: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'char' declared in a previous prototype [-Wknr-promoted-parameter] char charP; ^ ps.c:197:88: note: previous declaration is here static char *readlineuntil PT((FileData, long, char **, long *, unsigned int *, char)); ^ ps.c:2212:13: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'unsigned short' declared in a previous prototype [-Wknr-promoted-parameter] PS_WORD val; ^ ps.c:206:48: note: previous declaration is here static PS_WORD reorder_word PT((PS_WORD)); --- libspectre/ps.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/libspectre/ps.c b/libspectre/ps.c index c76f0e3..18c3c30 100644 --- a/libspectre/ps.c +++ b/libspectre/ps.c @@ -1866,13 +1866,7 @@ static char * readline (fd, enddoseps, lineP, positionP, line_lenP) */ /*----------------------------------------------------------*/ -static char * readlineuntil (fd, enddoseps, lineP, positionP, line_lenP, charP) - FileData fd; - long enddoseps; - char **lineP; - long *positionP; - unsigned int *line_lenP; - char charP; +static char * readlineuntil (FileData fd, long enddoseps, char **lineP, long *positionP, unsigned int *line_lenP, char charP) { char *line; @@ -2208,8 +2202,7 @@ reorder_dword(val) /* change byte order if architecture is big-endian */ static PS_WORD -reorder_word(val) - PS_WORD val; +reorder_word(PS_WORD val) { if (*((char *)(&dsc_arch))) return val; /* little endian machine */ -- cgit v1.2.3