chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
core: add a system-wide SystemCallArchitectures= setting
[elogind.git]
/
src
/
core
/
load-fragment.c
diff --git
a/src/core/load-fragment.c
b/src/core/load-fragment.c
index ec04ad28baed5ffac6e5b088dfaea6fcda506654..c92387439491ecd26064a6f03bcbce9b40532cb1 100644
(file)
--- a/
src/core/load-fragment.c
+++ b/
src/core/load-fragment.c
@@
-2045,18
+2045,18
@@
int config_parse_syscall_archs(
void *data,
void *userdata) {
void *data,
void *userdata) {
-
ExecContext *c
= data;
+
Set **archs
= data;
char *w, *state;
size_t l;
int r;
if (isempty(rvalue)) {
char *w, *state;
size_t l;
int r;
if (isempty(rvalue)) {
- set_free(
c->syscall_
archs);
-
c->syscall_
archs = NULL;
+ set_free(
*
archs);
+
*
archs = NULL;
return 0;
}
return 0;
}
- r = set_ensure_allocated(
&c->syscall_
archs, trivial_hash_func, trivial_compare_func);
+ r = set_ensure_allocated(archs, trivial_hash_func, trivial_compare_func);
if (r < 0)
return log_oom();
if (r < 0)
return log_oom();
@@
-2074,7
+2074,7
@@
int config_parse_syscall_archs(
continue;
}
continue;
}
- r = set_put(
c->syscall_
archs, UINT32_TO_PTR(a + 1));
+ r = set_put(
*
archs, UINT32_TO_PTR(a + 1));
if (r == -EEXIST)
continue;
if (r < 0)
if (r == -EEXIST)
continue;
if (r < 0)