summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen2000-12-20 23:40:57 +0000
committerEric Andersen2000-12-20 23:40:57 +0000
commit16fdbe8b27ed5c435a64d5162222427ba76825dc (patch)
tree3503d3614cbb56cadc4005ce83410d730c50a00a
parenta6cd07099d250ac4f0a7e88084d0470390405635 (diff)
downloadbusybox-16fdbe8b27ed5c435a64d5162222427ba76825dc.zip
busybox-16fdbe8b27ed5c435a64d5162222427ba76825dc.tar.gz
Make more things be static (like they are supposed to be).
-rw-r--r--mkswap.c8
-rw-r--r--util-linux/mkswap.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/mkswap.c b/mkswap.c
index 3a39689..60ae286 100644
--- a/mkswap.c
+++ b/mkswap.c
@@ -173,19 +173,19 @@ static int bit_test_and_clear(unsigned int *addr, unsigned int nr)
}
-void die(const char *str)
+static void die(const char *str)
{
error_msg("%s\n", str);
exit(EXIT_FAILURE);
}
-void page_ok(int page)
+static void page_ok(int page)
{
if (version == 0)
bit_set(signature_page, page);
}
-void page_bad(int page)
+static void page_bad(int page)
{
if (version == 0)
bit_test_and_clear(signature_page, page);
@@ -197,7 +197,7 @@ void page_bad(int page)
badpages++;
}
-void check_blocks(void)
+static void check_blocks(void)
{
unsigned int current_page;
int do_seek = 1;
diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c
index 3a39689..60ae286 100644
--- a/util-linux/mkswap.c
+++ b/util-linux/mkswap.c
@@ -173,19 +173,19 @@ static int bit_test_and_clear(unsigned int *addr, unsigned int nr)
}
-void die(const char *str)
+static void die(const char *str)
{
error_msg("%s\n", str);
exit(EXIT_FAILURE);
}
-void page_ok(int page)
+static void page_ok(int page)
{
if (version == 0)
bit_set(signature_page, page);
}
-void page_bad(int page)
+static void page_bad(int page)
{
if (version == 0)
bit_test_and_clear(signature_page, page);
@@ -197,7 +197,7 @@ void page_bad(int page)
badpages++;
}
-void check_blocks(void)
+static void check_blocks(void)
{
unsigned int current_page;
int do_seek = 1;