aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mount.c
diff options
context:
space:
mode:
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 3cfbc5600..2efa77644 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -46,11 +46,11 @@
46#if defined(__dietlibc__) 46#if defined(__dietlibc__)
47/* 16.12.2006, Sampo Kellomaki (sampo@iki.fi) 47/* 16.12.2006, Sampo Kellomaki (sampo@iki.fi)
48 * dietlibc-0.30 does not have implementation of getmntent_r() */ 48 * dietlibc-0.30 does not have implementation of getmntent_r() */
49static struct mntent *getmntent_r(FILE* stream, struct mntent* result, char* buffer, int bufsize) 49static struct mntent *getmntent_r(FILE* stream, struct mntent* result,
50 char* buffer ATTRIBUTE_UNUSED, int bufsize ATTRIBUTE_UNUSED)
50{ 51{
51 struct mntent* ment = getmntent(stream); 52 struct mntent* ment = getmntent(stream);
52 memcpy(result, ment, sizeof(struct mntent)); 53 return memcpy(result, ment, sizeof(*ment));
53 return result;
54} 54}
55#endif 55#endif
56 56