chiark
/
gitweb
/
~ian
/
chiark-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fishdescriptor: Work if child is not running as root, but we are
[chiark-utils.git]
/
cprogs
/
common.h
diff --git
a/cprogs/common.h
b/cprogs/common.h
index ca0609bb4f95d3650941d17481576723a8a8d588..a7a2cdd79251a16ad81978f159aeedd1efb4cbd5 100644
(file)
--- a/
cprogs/common.h
+++ b/
cprogs/common.h
@@
-30,6
+30,7
@@
#include <stdarg.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdio.h>
+#include <stdlib.h>
char *m_vasprintf(const char *fmt, va_list al);
char *m_asprintf(const char *fmt, ...);
char *m_vasprintf(const char *fmt, va_list al);
char *m_asprintf(const char *fmt, ...);
@@
-38,4
+39,6
@@
char *m_asprintf(const char *fmt, ...);
void common_die(const char *what);
void common_diee(const char *what); /* prints errno */
void common_die(const char *what);
void common_diee(const char *what); /* prints errno */
+void *xmalloc(size_t sz);
+
#endif /*COMMON_H*/
#endif /*COMMON_H*/