chiark / gitweb /
util: modernize a few functions with automatic cleanup variables
[elogind.git] / src / shared / util.h
index 2a151ae26d052b95ccd93bc3c08b5631ddd1b708..90234eb27b8577f5c75c349f711e4d340c4c71f2 100644 (file)
@@ -419,10 +419,6 @@ bool nulstr_contains(const char*nulstr, const char *needle);
 
 bool plymouth_running(void);
 
-void syslog_parse_priority(char **p, int *priority);
-void syslog_skip_pid(char **buf);
-void syslog_skip_date(char **buf);
-
 bool hostname_is_valid(const char *s);
 char* hostname_cleanup(char *s);
 
@@ -532,3 +528,7 @@ void warn_melody(void);
 
 int get_shell(char **ret);
 int get_home_dir(char **ret);
+
+void freep(void *p);
+void fclosep(FILE **f);
+void closep(int *fd);