Make a few functions static.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4548 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2007-07-03 16:28:18 +00:00
1 parent 2f88a8c1f6
commit bc7599e8ee
2 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -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;
+2 -2
View File
@@ -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");