Updates to a number of apps to remove warnings/compile errors under libc5.
Tested under both libc5 and libc6 and all seems well with these fixes. -Erik
This commit is contained in:
@ -33,7 +33,7 @@ int chvt_main(int argc, char **argv)
|
||||
perror("VT_WAITACTIVE");
|
||||
exit(FALSE);
|
||||
}
|
||||
exit(TRUE);
|
||||
return(TRUE);
|
||||
}
|
||||
|
||||
|
||||
|
@ -29,5 +29,5 @@
|
||||
extern int clear_main(int argc, char **argv)
|
||||
{
|
||||
printf("\033[H\033[J");
|
||||
exit(TRUE);
|
||||
return(TRUE);
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ int deallocvt_main(int argc, char *argv[])
|
||||
/* deallocate all unused consoles */
|
||||
if (ioctl(fd, VT_DISALLOCATE, 0)) {
|
||||
perror("VT_DISALLOCATE");
|
||||
exit(1);
|
||||
exit( FALSE);
|
||||
}
|
||||
} else
|
||||
for (i = 1; i < argc; i++) {
|
||||
@ -48,8 +48,8 @@ int deallocvt_main(int argc, char *argv[])
|
||||
perror("VT_DISALLOCATE");
|
||||
fprintf(stderr, "%s: could not deallocate console %d\n",
|
||||
progname, num);
|
||||
exit(1);
|
||||
exit( FALSE);
|
||||
}
|
||||
}
|
||||
exit(0);
|
||||
return( TRUE);
|
||||
}
|
||||
|
@ -140,10 +140,9 @@ int screen_map_load(int fd, FILE * fp)
|
||||
perror("PIO_SCRNMAP ioctl"), exit(1);
|
||||
else
|
||||
return 0;
|
||||
} else {
|
||||
fprintf(stderr, "Error parsing symbolic map\n");
|
||||
exit(1);
|
||||
}
|
||||
fprintf(stderr, "Error parsing symbolic map\n");
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
||||
|
@ -94,5 +94,5 @@ int loadkmap_main(int argc, char **argv)
|
||||
/* Don't bother to close files. Exit does that
|
||||
* automagically, so we can save a few bytes */
|
||||
/* close(fd); */
|
||||
exit(TRUE);
|
||||
return(TRUE);
|
||||
}
|
||||
|
@ -72,5 +72,5 @@ setkeycodes_main(int argc, char** argv)
|
||||
argc -= 2;
|
||||
argv += 2;
|
||||
}
|
||||
exit( TRUE);
|
||||
return( TRUE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user