summaryrefslogtreecommitdiff
path: root/libspectre
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals.cid@kdab.com>2018-10-19 18:03:51 +0200
committerAlbert Astals Cid <tsdgeos@yahoo.es>2018-10-19 20:34:12 +0000
commit48696f7e724923564dd6c8908afdb7c9d4893f02 (patch)
tree05e139a553dbeda5b61a9392951908fdabb71a0b /libspectre
parent92a478f926ded10dc15726e31998d041d6ff7794 (diff)
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));
Diffstat (limited to 'libspectre')
-rw-r--r--libspectre/ps.c11
1 files 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 */