diff options
author | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-09-28 10:07:26 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-09-28 10:07:26 +0200 |
commit | b3dc734018ef4dff8bab10409cd3ddf5ee10c48c (patch) | |
tree | 5f63c72afb179be139d44d0d823253f08f0392fc /fs/devfs.c | |
parent | 27bf8f1deabda87d07a8b9c7e21b59484f1a197e (diff) | |
download | barebox-b3dc734018ef4dff8bab10409cd3ddf5ee10c48c.tar.gz barebox-b3dc734018ef4dff8bab10409cd3ddf5ee10c48c.tar.xz |
declare lots of functions static
Diffstat (limited to 'fs/devfs.c')
-rw-r--r-- | fs/devfs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/devfs.c b/fs/devfs.c index 4fc0dbb91b..cc8a9d0542 100644 --- a/fs/devfs.c +++ b/fs/devfs.c @@ -88,7 +88,7 @@ static int devfs_truncate(struct device_d *dev, FILE *f, ulong size) return 0; } -DIR* devfs_opendir(struct device_d *dev, const char *pathname) +static DIR* devfs_opendir(struct device_d *dev, const char *pathname) { DIR *dir; @@ -101,7 +101,7 @@ DIR* devfs_opendir(struct device_d *dev, const char *pathname) return dir; } -struct dirent* devfs_readdir(struct device_d *_dev, DIR *dir) +static struct dirent* devfs_readdir(struct device_d *_dev, DIR *dir) { struct device_d *dev = dir->priv; @@ -116,13 +116,13 @@ struct dirent* devfs_readdir(struct device_d *_dev, DIR *dir) return NULL; } -int devfs_closedir(struct device_d *dev, DIR *dir) +static int devfs_closedir(struct device_d *dev, DIR *dir) { free(dir); return 0; } -int devfs_stat(struct device_d *_dev, const char *filename, struct stat *s) +static int devfs_stat(struct device_d *_dev, const char *filename, struct stat *s) { struct device_d *dev; @@ -143,7 +143,7 @@ int devfs_stat(struct device_d *_dev, const char *filename, struct stat *s) return 0; } -int devfs_probe(struct device_d *dev) +static int devfs_probe(struct device_d *dev) { return 0; } @@ -171,7 +171,7 @@ static struct fs_driver_d devfs_driver = { } }; -int devfs_init(void) +static int devfs_init(void) { return register_driver(&devfs_driver.drv); } |