chiark / gitweb /
Do not print invalid UTF-8 in error messages
[elogind.git] / src / shared / path-lookup.h
index baef62228af0e35f8da0a7b98de364ae4bc62924..a3ef824a8603e42e59775bc3fdaa8d7ad5434b8e 100644 (file)
@@ -36,8 +36,10 @@ typedef enum SystemdRunningAs {
         _SYSTEMD_RUNNING_AS_INVALID = -1
 } SystemdRunningAs;
 
-const char* systemd_running_as_to_string(SystemdRunningAs i);
-SystemdRunningAs systemd_running_as_from_string(const char *s);
+#define _cleanup_lookup_paths_free_ _cleanup_(lookup_paths_free)
+
+const char* systemd_running_as_to_string(SystemdRunningAs i) _const_;
+SystemdRunningAs systemd_running_as_from_string(const char *s) _pure_;
 
 int user_config_home(char **config_home);