diff options
author | Eric Andersen | 2002-04-06 05:17:57 +0000 |
---|---|---|
committer | Eric Andersen | 2002-04-06 05:17:57 +0000 |
commit | fcffa2cc1a0f11ea6a075dd37762ca5b543b55e1 (patch) | |
tree | b692176a654613bb68ca37c42f88201aeb48d8ba /util-linux | |
parent | 50e4d660ace54d8da2cb09d537138447a92c68bd (diff) | |
download | busybox-fcffa2cc1a0f11ea6a075dd37762ca5b543b55e1.zip busybox-fcffa2cc1a0f11ea6a075dd37762ca5b543b55e1.tar.gz |
Apply lash_patch35 from vodz, which brings several nice size_optimizations.
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/mkswap.c | 8 | ||||
-rw-r--r-- | util-linux/mount.c | 3 |
2 files changed, 5 insertions, 6 deletions
diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c index c773ece..de10ba7 100644 --- a/util-linux/mkswap.c +++ b/util-linux/mkswap.c @@ -81,7 +81,7 @@ static struct swap_header_v1 { unsigned int badpages[1]; } *p; -static void init_signature_page(void) +static inline void init_signature_page(void) { pagesize = getpagesize(); @@ -94,7 +94,7 @@ static void init_signature_page(void) p = (struct swap_header_v1 *) signature_page; } -static void write_signature(char *sig) +static inline void write_signature(char *sig) { char *sp = (char *) signature_page; @@ -147,7 +147,7 @@ It is roughly 2GB on i386, PPC, m68k, ARM, 1GB on sparc, 512MB on mips, #define MAX_BADPAGES ((pagesize-1024-128*sizeof(int)-10)/sizeof(int)) -static void bit_set(unsigned int *addr, unsigned int nr) +static inline void bit_set(unsigned int *addr, unsigned int nr) { unsigned int r, m; @@ -179,7 +179,7 @@ static void page_ok(int page) bit_set(signature_page, page); } -static void page_bad(int page) +static inline void page_bad(int page) { if (version == 0) bit_test_and_clear(signature_page, page); diff --git a/util-linux/mount.c b/util-linux/mount.c index ae4417c..74ce4e1 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c @@ -469,9 +469,8 @@ singlemount: string_flags = xstrdup(string_flags); rc = EXIT_SUCCESS; #ifdef CONFIG_NFSMOUNT - if (strchr(device, ':') != NULL) + if (strchr(device, ':') != NULL) { filesystemType = "nfs"; - if (strcmp(filesystemType, "nfs") == 0) { if (nfsmount (device, directory, &flags, &extra_opts, &string_flags, 1)) { perror_msg("nfsmount failed"); |