]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
xdg-autostart-generator: make parameter const
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 10 Jan 2022 11:02:03 +0000 (12:02 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 10 Jan 2022 11:09:35 +0000 (12:09 +0100)
src/xdg-autostart-generator/xdg-autostart-service.c
src/xdg-autostart-generator/xdg-autostart-service.h

index 241a5b3cfd612790a798b82a1563f7d71dac5601..3fd1f4bbf288f34dedc3a697cf28d5695673df25 100644 (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;
index 2641718899c8c9d716a066aa96c774ad725cdbf1..61a4a7304df7114ac2b50296aa5fbaefaea6d117 100644 (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);