diff --git a/prog/dump/isadump.c b/prog/dump/isadump.c index 04eee8d3..55fd9005 100644 --- a/prog/dump/isadump.c +++ b/prog/dump/isadump.c @@ -47,7 +47,7 @@ unsigned long isa_io_base = 0; /* XXX for now */ #endif /* __powerpc__ */ -void help(void) +static void help(void) { fprintf(stderr, "Syntax for I2C-like access:\n" @@ -56,7 +56,7 @@ void help(void) " isadump [-y] -f ADDRESS [RANGE [BANK [BANKREG]]]\n"); } -int default_bankreg(int flat, int addrreg, int datareg) +static int default_bankreg(int flat, int addrreg, int datareg) { if (flat) { return 0x09; /* Works for National Semiconductor @@ -71,7 +71,7 @@ int default_bankreg(int flat, int addrreg, int datareg) return 0x4e; /* Works for Winbond ISA chips, default */ } -int set_bank(int flat, int addrreg, int datareg, int bank, int bankreg) +static int set_bank(int flat, int addrreg, int datareg, int bank, int bankreg) { int oldbank; diff --git a/prog/sensors/main.c b/prog/sensors/main.c index 6f080775..c797d40a 100644 --- a/prog/sensors/main.c +++ b/prog/sensors/main.c @@ -94,7 +94,7 @@ void print_version(void) /* This examines global var config_file, and leaves the name there too. It also opens config_file. */ -void open_config_file(const char* config_file_name) +static void open_config_file(const char* config_file_name) { if (!strcmp(config_file_name,"-")) { config_file = stdin; @@ -109,7 +109,7 @@ void open_config_file(const char* config_file_name) } } -void close_config_file(const char* config_file_name) +static void close_config_file(const char* config_file_name) { if (fclose(config_file) == EOF) { fprintf(stderr,"Could not close config file\n");