summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
493d521)
Other functions in this file follow this pattern,
we have vconsole_write_data and locale_write_data.
return write_env_file_label("/etc/vconsole.conf", l);
}
return write_env_file_label("/etc/vconsole.conf", l);
}
-static int write_data_x11(Context *c) {
+static int x11_write_data(Context *c) {
_cleanup_fclose_ FILE *f = NULL;
_cleanup_free_ char *temp_path = NULL;
int r;
_cleanup_fclose_ FILE *f = NULL;
_cleanup_free_ char *temp_path = NULL;
int r;
if (r < 0) {
log_error("Failed to set X11 keyboard layout: %s", strerror(-r));
return r;
if (r < 0) {
log_error("Failed to set X11 keyboard layout: %s", strerror(-r));
return r;
free_and_strdup(&c->x11_options, options) < 0)
return -ENOMEM;
free_and_strdup(&c->x11_options, options) < 0)
return -ENOMEM;
if (r < 0) {
log_error("Failed to set X11 keyboard layout: %s", strerror(-r));
return sd_bus_error_set_errnof(error, r, "Failed to set X11 keyboard layout: %s", strerror(-r));
if (r < 0) {
log_error("Failed to set X11 keyboard layout: %s", strerror(-r));
return sd_bus_error_set_errnof(error, r, "Failed to set X11 keyboard layout: %s", strerror(-r));