summaryrefslogtreecommitdiff
path: root/util-linux/mount.c
diff options
context:
space:
mode:
authorDenis Vlasenko2008-05-26 01:19:53 +0000
committerDenis Vlasenko2008-05-26 01:19:53 +0000
commita0e17f7df6d4c65ecab7339e9899b294ff8bc04e (patch)
tree6a78ba6cbfadf1eed88d81c2323138bdddb7da70 /util-linux/mount.c
parentb267ed95bc8141dbf14b276d4aef0fb8e2f5dda7 (diff)
downloadbusybox-a0e17f7df6d4c65ecab7339e9899b294ff8bc04e.zip
busybox-a0e17f7df6d4c65ecab7339e9899b294ff8bc04e.tar.gz
[u]mount: add/update dietlibc build fix
Diffstat (limited to 'util-linux/mount.c')
-rw-r--r--util-linux/mount.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 3cfbc56..2efa776 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -46,11 +46,11 @@
#if defined(__dietlibc__)
/* 16.12.2006, Sampo Kellomaki (sampo@iki.fi)
* dietlibc-0.30 does not have implementation of getmntent_r() */
-static struct mntent *getmntent_r(FILE* stream, struct mntent* result, char* buffer, int bufsize)
+static struct mntent *getmntent_r(FILE* stream, struct mntent* result,
+ char* buffer ATTRIBUTE_UNUSED, int bufsize ATTRIBUTE_UNUSED)
{
struct mntent* ment = getmntent(stream);
- memcpy(result, ment, sizeof(struct mntent));
- return result;
+ return memcpy(result, ment, sizeof(*ment));
}
#endif