summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2015-05-27 21:16:46 +0200
committerGravatar Christian Hesse <mail@eworm.de>2015-05-27 21:16:46 +0200
commit81465d72e3726e706cbb450ad51ea6b3cab1feb8 (patch)
tree6067b2cc6f79b2932557d16cf5f86e4dd8fa666a
parent77b2a170497a01dc5031dec94c009f20bbfb71da (diff)
downloadmkinitcpio-ykfde-81465d72e3726e706cbb450ad51ea6b3cab1feb8.tar.gz
mkinitcpio-ykfde-81465d72e3726e706cbb450ad51ea6b3cab1feb8.tar.zst
iniparser_getstring() returns const char *
-rw-r--r--bin/ykfde.c2
-rw-r--r--udev/ykfde.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/ykfde.c b/bin/ykfde.c
index 663d198..b3fa882 100644
--- a/bin/ykfde.c
+++ b/bin/ykfde.c
@@ -52,7 +52,7 @@ int main(int argc, char **argv) {
int i;
int8_t rc = EXIT_FAILURE;
/* cryptsetup */
- char * device_name;
+ const char * device_name;
int8_t luks_slot = -1;
struct crypt_device *cd;
crypt_status_info cs;
diff --git a/udev/ykfde.c b/udev/ykfde.c
index 923e5ef..1d420d0 100644
--- a/udev/ykfde.c
+++ b/udev/ykfde.c
@@ -67,7 +67,7 @@ static int send_on_socket(int fd, const char *socket_name, const void *packet, s
static int try_answer(char * ask_file, char * response) {
int8_t rc = EXIT_FAILURE;
dictionary * ini;
- char * ask_message, * ask_socket;
+ const char * ask_message, * ask_socket;
int fd_askpass;
if ((ini = iniparser_load(ask_file)) == NULL)