diff options
author | netchild <netchild@FreeBSD.org> | 2011-03-15 13:40:47 +0000 |
---|---|---|
committer | netchild <netchild@FreeBSD.org> | 2011-03-15 13:40:47 +0000 |
commit | 2d4b88f6382d2eccac6c5d0478a4861fd8ec9dff (patch) | |
tree | 7d2a7008a9eb65616d4fb0d1f8e03c68a65d0094 /sys/compat/linux | |
parent | 291c7332387e38e2cdc659763f1ba3807107e90a (diff) | |
download | FreeBSD-src-2d4b88f6382d2eccac6c5d0478a4861fd8ec9dff.zip FreeBSD-src-2d4b88f6382d2eccac6c5d0478a4861fd8ec9dff.tar.gz |
Staticize functions which are not used somewhere else, move the
corresponding prototypes from the header to the code file.
Diffstat (limited to 'sys/compat/linux')
-rw-r--r-- | sys/compat/linux/linux_mib.c | 10 | ||||
-rw-r--r-- | sys/compat/linux/linux_mib.h | 3 |
2 files changed, 7 insertions, 6 deletions
diff --git a/sys/compat/linux/linux_mib.c b/sys/compat/linux/linux_mib.c index 5e770f6..1bb8bb7 100644 --- a/sys/compat/linux/linux_mib.c +++ b/sys/compat/linux/linux_mib.c @@ -69,6 +69,10 @@ static unsigned linux_osd_jail_slot; SYSCTL_NODE(_compat, OID_AUTO, linux, CTLFLAG_RW, 0, "Linux mode"); +static int linux_set_osname(struct thread *td, char *osname); +static int linux_set_osrelease(struct thread *td, char *osrelease); +static int linux_set_oss_version(struct thread *td, int oss_version); + static int linux_sysctl_osname(SYSCTL_HANDLER_ARGS) { @@ -469,7 +473,7 @@ linux_get_osname(struct thread *td, char *dst) mtx_unlock(&pr->pr_mtx); } -int +static int linux_set_osname(struct thread *td, char *osname) { struct prison *pr; @@ -505,7 +509,7 @@ linux_kernver(struct thread *td) return (osrel); } -int +static int linux_set_osrelease(struct thread *td, char *osrelease) { struct prison *pr; @@ -533,7 +537,7 @@ linux_get_oss_version(struct thread *td) return (version); } -int +static int linux_set_oss_version(struct thread *td, int oss_version) { struct prison *pr; diff --git a/sys/compat/linux/linux_mib.h b/sys/compat/linux/linux_mib.h index f78a5e5..e8eedf9 100644 --- a/sys/compat/linux/linux_mib.h +++ b/sys/compat/linux/linux_mib.h @@ -35,13 +35,10 @@ void linux_osd_jail_register(void); void linux_osd_jail_deregister(void); void linux_get_osname(struct thread *td, char *dst); -int linux_set_osname(struct thread *td, char *osname); void linux_get_osrelease(struct thread *td, char *dst); -int linux_set_osrelease(struct thread *td, char *osrelease); int linux_get_oss_version(struct thread *td); -int linux_set_oss_version(struct thread *td, int oss_version); int linux_kernver(struct thread *td); |