Lots of small code cleanup: make symbols local, remove unused symbols,

fixed a typo, removed a now unused header file.
Use #include <..> for header files that represent libraries.
This commit is contained in:
Kees van Reeuwijk
2010-02-09 15:23:38 +00:00
parent 391fd926ff
commit 064cb7583a
52 changed files with 229 additions and 449 deletions

View File

@@ -40,12 +40,9 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <errno.h>
#include <signal.h>
@@ -54,7 +51,6 @@
#include <minix/syslib.h>
#include <minix/sysutil.h>
#include <minix/com.h>
#include <minix/portio.h>
#include <ibm/cmos.h>
#include <sys/svrctl.h>
@@ -63,8 +59,6 @@ int wflag = 0; /* Set the CMOS clock. */
int Wflag = 0; /* Also set the CMOS clock register bits. */
int y2kflag = 0; /* Interpret 1980 as 2000 for clock with Y2K bug. */
char clocktz[128]; /* Timezone of the clock. */
#define MACH_ID_ADDR 0xFFFFE /* BIOS Machine ID at FFFF:000E */
#define PC_AT 0xFC /* Machine ID byte for PC/AT,