chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prep v239: Unmasked mkdtemp_malloc(), it is needed to test inotify.
[elogind.git]
/
src
/
basic
/
fileio.c
diff --git
a/src/basic/fileio.c
b/src/basic/fileio.c
index 1cee6d49594e7f5f88730eba9234cfcb77040de8..7b1014b1db081e0d0190954fba332b760ff808d0 100644
(file)
--- a/
src/basic/fileio.c
+++ b/
src/basic/fileio.c
@@
-1564,6
+1564,7
@@
int read_nul_string(FILE *f, char **ret) {
return 0;
}
return 0;
}
+#endif // 0
int mkdtemp_malloc(const char *template, char **ret) {
_cleanup_free_ char *p = NULL;
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;
}
*ret = TAKE_PTR(p);
return 0;
}
-#endif // 0
DEFINE_TRIVIAL_CLEANUP_FUNC(FILE*, funlockfile);
DEFINE_TRIVIAL_CLEANUP_FUNC(FILE*, funlockfile);