chiark / gitweb /
Prep v239: Unmasked mkdtemp_malloc(), it is needed to test inotify.
authorSven Eden <yamakuzure@gmx.net>
Thu, 23 Aug 2018 06:48:48 +0000 (08:48 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
src/basic/fileio.c
src/basic/fileio.h

index 1cee6d49594e7f5f88730eba9234cfcb77040de8..7b1014b1db081e0d0190954fba332b760ff808d0 100644 (file)
@@ -1564,6 +1564,7 @@ int read_nul_string(FILE *f, char **ret) {
 
         return 0;
 }
+#endif // 0
 
 int mkdtemp_malloc(const char *template, char **ret) {
         _cleanup_free_ char *p = NULL;
@@ -1591,7 +1592,6 @@ int mkdtemp_malloc(const char *template, char **ret) {
         *ret = TAKE_PTR(p);
         return 0;
 }
-#endif // 0
 
 DEFINE_TRIVIAL_CLEANUP_FUNC(FILE*, funlockfile);
 
index c7cc8076c176999ef6d5d78b7ee92653b5d56798..eac22ff76efe5072b77a1a3eeafc07640a774158 100644 (file)
@@ -101,8 +101,8 @@ int open_serialization_fd(const char *ident);
 int link_tmpfile(int fd, const char *path, const char *target);
 
 int read_nul_string(FILE *f, char **ret);
+#endif // 0
 
 int mkdtemp_malloc(const char *template, char **ret);
-#endif // 0
 
 int read_line(FILE *f, size_t limit, char **ret);