summaryrefslogtreecommitdiff
path: root/tftp
diff options
context:
space:
mode:
Diffstat (limited to 'tftp')
-rw-r--r--tftp/tftpsubs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tftp/tftpsubs.h b/tftp/tftpsubs.h
index a2a3a6c..6d2c183 100644
--- a/tftp/tftpsubs.h
+++ b/tftp/tftpsubs.h
@@ -42,6 +42,8 @@
* Prototypes for read-ahead/write-behind subroutines for tftp user and
* server.
*/
+#include <stdlib.h>
+
struct tftphdr *r_init(void);
void read_ahead(FILE *, int);
int readit(FILE *, struct tftphdr **, int);
@@ -55,3 +57,8 @@ int writeit(FILE *, struct tftphdr **, int, int);
extern int segsize;
#define MAX_SEGSIZE 65464
+/*
+ * Prototype for xmalloc/xstrdup
+ */
+extern void *xmalloc(size_t);
+extern char *xstrdup(const char *);