From 4d99773009fc5d644cfffd4ef84ed5f80372672d Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Fri, 26 Aug 2011 19:46:04 +0000 Subject: [PATCH] Remove internal loop definitions from header file. git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@606 36d66b0a-2a48-0410-832c-cd162a569da5 --- lib/utils_loop.c | 10 ++++++++++ lib/utils_loop.h | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/utils_loop.c b/lib/utils_loop.c index 91cde56..123154b 100644 --- a/lib/utils_loop.c +++ b/lib/utils_loop.c @@ -29,6 +29,16 @@ #include "utils_loop.h" +#define LOOP_DEV_MAJOR 7 + +#ifndef LO_FLAGS_AUTOCLEAR +#define LO_FLAGS_AUTOCLEAR 4 +#endif + +#ifndef LOOP_CTL_GET_FREE +#define LOOP_CTL_GET_FREE 0x4C82 +#endif + static char *crypt_loop_get_device_old(void) { char dev[20]; diff --git a/lib/utils_loop.h b/lib/utils_loop.h index 67b9fac..13a2d67 100644 --- a/lib/utils_loop.h +++ b/lib/utils_loop.h @@ -3,16 +3,6 @@ /* loopback device helpers */ -#define LOOP_DEV_MAJOR 7 - -#ifndef LO_FLAGS_AUTOCLEAR -#define LO_FLAGS_AUTOCLEAR 4 -#endif - -#ifndef LOOP_CTL_GET_FREE -#define LOOP_CTL_GET_FREE 0x4C82 -#endif - char *crypt_loop_get_device(void); char *crypt_loop_backing_file(const char *loop); int crypt_loop_device(const char *loop); -- 2.7.4