chiark / gitweb /
macro: rework how we define cleanup macros
[elogind.git] / src / shared / util.c
index 4eb64934ee4cf1437956f3629e3c6271e2b98077..53caa7f9e504ca8afaab61d96e1cf31f6af46070 100644 (file)
@@ -5277,26 +5277,6 @@ int get_home_dir(char **_h) {
         return 0;
 }
 
-void fclosep(FILE **f) {
-        if (*f)
-                fclose(*f);
-}
-
-void pclosep(FILE **f) {
-        if (*f)
-                pclose(*f);
-}
-
-void closep(int *fd) {
-        if (*fd >= 0)
-                close_nointr_nofail(*fd);
-}
-
-void closedirp(DIR **d) {
-        if (*d)
-                closedir(*d);
-}
-
 bool filename_is_safe(const char *p) {
 
         if (isempty(p))