diff options
author | Cong Wang <xiyou.wangcong@gmail.com> | 2012-01-31 14:58:09 +0800 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2012-02-01 08:48:58 +0900 |
commit | 10efab3c13965d3ec073359205da8468c3ae5076 (patch) | |
tree | 2157b69e9a30ced63e86f5479e9c274060019512 | |
parent | 873e0c8cd833abda2995016ef745e7d3c3d9c498 (diff) | |
download | kexec-tools-10efab3c13965d3ec073359205da8468c3ae5076.tar.gz |
kexec: make some functions static
The following functions/variables can become static.
Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | kexec/kexec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kexec/kexec.c b/kexec/kexec.c index abbe940c..89e725e9 100644 --- a/kexec/kexec.c +++ b/kexec/kexec.c @@ -49,7 +49,7 @@ unsigned long long mem_min = 0; unsigned long long mem_max = ULONG_MAX; -unsigned long kexec_flags = 0; +static unsigned long kexec_flags = 0; void die(char *fmt, ...) { @@ -62,7 +62,7 @@ void die(char *fmt, ...) exit(1); } -char *xstrdup(const char *str) +static char *xstrdup(const char *str) { char *new = strdup(str); if (!new) @@ -765,7 +765,7 @@ static int my_load(const char *type, int fileind, int argc, char **argv, return result; } -int k_unload (unsigned long kexec_flags) +static int k_unload (unsigned long kexec_flags) { int result; long native_arch; @@ -1006,7 +1006,7 @@ char *get_command_line(void) } /* check we retained the initrd */ -void check_reuse_initrd(void) +static void check_reuse_initrd(void) { char *line = get_command_line(); |