man,sort,df: prototypes
authorAlan Cox <alan@linux.intel.com>
Fri, 2 Jan 2015 11:27:48 +0000 (11:27 +0000)
committerAlan Cox <alan@linux.intel.com>
Fri, 2 Jan 2015 11:27:48 +0000 (11:27 +0000)
Line us back up with the now more correct headers

Applications/util/df.c
Applications/util/man.c
Applications/util/sort.c

index 3bb99d0..f1c42b0 100644 (file)
@@ -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;
index 61ee736..f6c7007 100644 (file)
@@ -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. */
index fd2a786..fb1640e 100644 (file)
@@ -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;