From 653290586f5d119caa77397ebd33dd0de9070b58 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 20 Dec 2011 11:41:24 +0100 Subject: losetup: remove obsolete #ifdef MAIN Signed-off-by: Karel Zak --- mount/lomount.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'mount/lomount.c') diff --git a/mount/lomount.c b/mount/lomount.c index 2ce30abb0..222178ff9 100644 --- a/mount/lomount.c +++ b/mount/lomount.c @@ -15,6 +15,8 @@ #include #include #include +#include +#include #include "loop.h" #include "lomount.h" @@ -448,8 +450,6 @@ find_loopdev_by_backing_file(const char *filename, char **loopdev) return devs_n ? 2 : 1; /* more loopdevs or error */ } -#ifdef MAIN - static int set_capacity(const char *device) { @@ -610,9 +610,6 @@ show_associated_loop_devices(char *filename, unsigned long long offset, int isof return 0; } - -#endif /* MAIN */ - /* check if the loopfile is already associated with the same given * parameters. * @@ -1026,12 +1023,8 @@ find_loopdev_by_backing_file(const char *filename, char **loopdev) #endif /* !LOOP_SET_FD */ -#ifdef MAIN - #ifdef LOOP_SET_FD -#include -#include static void usage(FILE *out) { @@ -1263,4 +1256,3 @@ main(int argc, char **argv) { return -1; } #endif /* !LOOP_SET_FD*/ -#endif /* MAIN */ -- cgit v1.2.3-55-g7522