* number and writes the number back to the file.
*/
/* dummy */
-char *fsprobe_get_label_by_devname(const char *spec) { return NULL; }
-char *fsprobe_get_uuid_by_devname(const char *spec) { return NULL; }
-int fsprobe_parse_spec(const char *spec, char **name, char **value) { return 0; }
-struct my_mntent *my_getmntent (mntFILE *mfp) { return NULL; }
-mntFILE *my_setmntent (const char *file, char *mode) { return NULL; }
-void my_endmntent (mntFILE *mfp) { }
-int my_addmntent (mntFILE *mfp, struct my_mntent *mnt) { return 0; }
+char *fsprobe_get_label_by_devname(const char *spec __attribute((__unused__)))
+{
+ return NULL;
+}
+char *fsprobe_get_uuid_by_devname(const char *spec __attribute((__unused__)))
+{
+ return NULL;
+}
+int fsprobe_parse_spec(const char *spec __attribute((__unused__)),
+ char **name __attribute((__unused__)),
+ char **value __attribute((__unused__)))
+{
+ return 0;
+}
+struct my_mntent *my_getmntent (mntFILE *mfp __attribute((__unused__)))
+{
+ return NULL;
+}
+mntFILE *my_setmntent (const char *file __attribute((__unused__)),
+ char *mode __attribute((__unused__)))
+{
+ return NULL;
+}
+void my_endmntent (mntFILE *mfp __attribute((__unused__)))
+{
+ /* nothing */
+}
+int my_addmntent (mntFILE *mfp __attribute((__unused__)),
+ struct my_mntent *mnt __attribute((__unused__)))
+{
+ return 0;
+}
int
main(int argc, char **argv)
#ifdef HAVE_LIBMOUNT_MOUNT
static struct libmnt_table *minfo; /* parsed mountinfo file */
-#endif
/* Check if an fsname/dir pair was already in the old mtab. */
static int
mounted (const char *spec0, const char *node0, struct mntentchn *fstab_mc) {
+#else
+static int
+mounted (const char *spec0, const char *node0,
+ struct mntentchn *fstab_mc __attribute__((__unused__))) {
+#endif
struct mntentchn *mc, *mc0;
const char *spec, *node;
int ret = 0;