summaryrefslogtreecommitdiffstats
path: root/src/systemctl
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2024-08-21 15:51:08 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-09-06 01:29:45 +0200
commit79f0e94e27f9304ffdd65465a7e16aa5176aa211 (patch)
treeb742abc8ffd66c9929525d048bf31f7fd7b4c9b0 /src/systemctl
parentudev: allow persistent storage rules for rbd devices (diff)
downloadsystemd-79f0e94e27f9304ffdd65465a7e16aa5176aa211.tar.xz
systemd-79f0e94e27f9304ffdd65465a7e16aa5176aa211.zip
edit-util: EditFileContext: avoid reserved 'stdin'
The identifier 'stdin' is reserved in C. It can be #defined to any statement that evaluates to a FILE*. We do not want that for our field, so change to a more descriptive name.
Diffstat (limited to 'src/systemctl')
-rw-r--r--src/systemctl/systemctl-edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl-edit.c b/src/systemctl/systemctl-edit.c
index 880bd4d742..c42a31153d 100644
--- a/src/systemctl/systemctl-edit.c
+++ b/src/systemctl/systemctl-edit.c
@@ -317,7 +317,7 @@ int verb_edit(int argc, char *argv[], void *userdata) {
.marker_end = DROPIN_MARKER_END,
.remove_parent = !arg_full,
.overwrite_with_origin = true,
- .stdin = arg_stdin,
+ .read_from_stdin = arg_stdin,
};
_cleanup_strv_free_ char **names = NULL;
sd_bus *bus;