Teach libc5 what a sighandler_t is
[oweals/busybox.git] / mount.c
diff --git a/mount.c b/mount.c
index 17517fe21f86efd580121aac8f88ab841e91e5ae..eb6091f30e3763dc7df780b6a820cb59f8ee04fc 100644 (file)
--- a/mount.c
+++ b/mount.c
@@ -144,7 +144,7 @@ do_mount(char *specialfile, char *dir, char *filesystemtype,
                        }
                        if (!(flags & MS_RDONLY) && loro) {     /* loop is ro, but wanted rw */
                                error_msg("WARNING: loop device is read-only");
-                               flags &= ~MS_RDONLY;
+                               flags |= MS_RDONLY;
                        }
                }
 #endif
@@ -233,7 +233,7 @@ parse_mount_options(char *options, int *flags, char *strflags)
        }
 }
 
-extern int
+static int
 mount_one(char *blockDevice, char *directory, char *filesystemType,
                  unsigned long flags, char *string_flags, int useMtab, int fakeIt,
                  char *mtab_opts, int whineOnErrors, int mount_all)