[PATCH 1/3] cryptsetup: the device parameter of LUKS_device_ready should be const

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Ludwig Nussel <ludwig.nussel@xxxxxxx>
---

 luks/keymanage.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/luks/keymanage.c b/luks/keymanage.c
index 915a0f2..91ff688 100644
--- a/luks/keymanage.c
+++ b/luks/keymanage.c
@@ -466,7 +466,7 @@ int LUKS_benchmarkt_iterations()
 	return PBKDF2_performance_check()/2;
 }
 
-int LUKS_device_ready(char *device, int mode)
+int LUKS_device_ready(const char *device, int mode)
 {
         int devfd = open(device, mode | O_DIRECT | O_SYNC);
         if(devfd < 0) {


---------------------------------------------------------------------
dm-crypt mailing list - http://www.saout.de/misc/dm-crypt/
To unsubscribe, e-mail: dm-crypt-unsubscribe@xxxxxxxx
For additional commands, e-mail: dm-crypt-help@xxxxxxxx


[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux