From 6aebc4f97eac7c34f79ce07c409ec12484a72000 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 2 Jan 2015 11:27:48 +0000 Subject: [PATCH] man,sort,df: prototypes Line us back up with the now more correct headers --- Applications/util/df.c | 2 +- Applications/util/man.c | 2 +- Applications/util/sort.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Applications/util/df.c b/Applications/util/df.c index 3bb99d0f..f1c42b0a 100644 --- a/Applications/util/df.c +++ b/Applications/util/df.c @@ -45,7 +45,7 @@ int main(int argc, char *argv[]) } } else { for (j = 0; j < 8; ++j) { - if ((_getfsys(j, (char *) &fsys) == 0) && fsys.s_mounted) { + if ((_getfsys(j, &fsys) == 0) && fsys.s_mounted) { Total = iflag ? 8 * (fsys.s_isize - 2) : fsys.s_fsize; Used = iflag ? Total - fsys.s_tinode : Total - fsys.s_isize - fsys.s_tfree; diff --git a/Applications/util/man.c b/Applications/util/man.c index 61ee7367..f6c70073 100644 --- a/Applications/util/man.c +++ b/Applications/util/man.c @@ -274,7 +274,7 @@ void execute(int set_mp, char *file) pid_t pid; int r, status; int last; - void (*isav)(signal_t sig), (*qsav)(signal_t sig), (*tsav)(signal_t sig); + void (*isav)(int sig), (*qsav)(int sig), (*tsav)(int sig); if (tty) { /* Must run this through a pager. */ diff --git a/Applications/util/sort.c b/Applications/util/sort.c index fd2a786f..fb1640e1 100644 --- a/Applications/util/sort.c +++ b/Applications/util/sort.c @@ -197,7 +197,7 @@ int length(char *line); void copy(char *dest, char *src); char *msbrk(int size); void mbrk(char *address); -void catch(signal_t dummy); +void catch(int dummy); /* Table of all chars. 0 means no special meaning. */ char table[256] = { @@ -1175,7 +1175,7 @@ void mbrk(char *address) if (brk(address) == -1) error(TRUE, "Cannot reset memory", NIL_PTR); } -void catch(signal_t dummy) /* to satisfy the prototype */ +void catch(int dummy) /* to satisfy the prototype */ { register int i; -- 2.34.1