summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2018-08-23 08:48:48 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commita116fae17a845c305cd2da0c1ecdc3f406ceb8db (patch)
tree5aa37cae46d1b783daeb3e5a5f9bb35b9bb6b948
parented634df06b99d6f1eee06ba2a241f719393c0082 (diff)
Prep v239: Unmasked mkdtemp_malloc(), it is needed to test inotify.
-rw-r--r--src/basic/fileio.c2
-rw-r--r--src/basic/fileio.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/fileio.c b/src/basic/fileio.c
index 1cee6d495..7b1014b1d 100644
--- a/src/basic/fileio.c
+++ b/src/basic/fileio.c
@@ -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);
diff --git a/src/basic/fileio.h b/src/basic/fileio.h
index c7cc8076c..eac22ff76 100644
--- a/src/basic/fileio.h
+++ b/src/basic/fileio.h
@@ -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);