1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

xdg-autostart-generator: make parameter const

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-01-10 12:02:03 +01:00
parent 79a67f3ca4
commit eb79d39138
2 changed files with 2 additions and 3 deletions

View File

@ -502,7 +502,7 @@ static int xdg_autostart_generate_desktop_condition(
}
int xdg_autostart_service_generate_unit(
XdgAutostartService *service,
const XdgAutostartService *service,
const char *dest) {
_cleanup_free_ char *path_escaped = NULL, *exec_start = NULL, *unit = NULL;

View File

@ -26,7 +26,6 @@ typedef struct XdgAutostartService {
} XdgAutostartService;
XdgAutostartService * xdg_autostart_service_free(XdgAutostartService *s);
DEFINE_TRIVIAL_CLEANUP_FUNC(XdgAutostartService*, xdg_autostart_service_free);
@ -34,4 +33,4 @@ char *xdg_autostart_service_translate_name(const char *name);
int xdg_autostart_format_exec_start(const char *exec, char **ret_exec_start);
XdgAutostartService *xdg_autostart_service_parse_desktop(const char *path);
int xdg_autostart_service_generate_unit(XdgAutostartService *service, const char *dest);
int xdg_autostart_service_generate_unit(const XdgAutostartService *service, const char *dest);