chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
missing.h: fix wrong __NR_getrandom syscall def
[elogind.git]
/
src
/
cryptsetup
/
cryptsetup.c
diff --git
a/src/cryptsetup/cryptsetup.c
b/src/cryptsetup/cryptsetup.c
index 67dc88fa515c37a02eef4d366badac4399a35203..94570eb82d07ac9b836907d86b8cadfb34305176 100644
(file)
--- a/
src/cryptsetup/cryptsetup.c
+++ b/
src/cryptsetup/cryptsetup.c
@@
-175,16
+175,16
@@
static int parse_one_option(const char *option) {
}
static int parse_options(const char *options) {
}
static int parse_options(const char *options) {
- c
har *state, *w
;
+ c
onst char *word, *state
;
size_t l;
int r;
assert(options);
size_t l;
int r;
assert(options);
- FOREACH_WORD_SEPARATOR(w, l, options, ",", state) {
+ FOREACH_WORD_SEPARATOR(w
ord
, l, options, ",", state) {
_cleanup_free_ char *o;
_cleanup_free_ char *o;
- o = strndup(w, l);
+ o = strndup(w
ord
, l);
if (!o)
return -ENOMEM;
r = parse_one_option(o);
if (!o)
return -ENOMEM;
r = parse_one_option(o);