projects
/
feed
/
packages.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
treewide: Run refresh on all packages
[feed/packages.git]
/
utils
/
mpack
/
patches
/
001-use-stdlib.patch
1
--- a/unixos.c
2
+++ b/unixos.c
3
@@ -25,6 +25,7 @@
4
#include <stdio.h>
5
#include <ctype.h>
6
#include <string.h>
7
+#include <stdlib.h>
8
#include <errno.h>
9
#include <sys/types.h>
10
#include <sys/param.h>
11
@@ -39,8 +40,6 @@
12
#endif
13
14
extern int errno;
15
-extern char *malloc();
16
-extern char *getenv();
17
18
int overwrite_files = 0;
19
int didchat;
20
--- a/xmalloc.c
21
+++ b/xmalloc.c
22
@@ -24,7 +24,7 @@
23
*/
24
#include <stdio.h>
25
#include <string.h>
26
-extern char *malloc(), *realloc();
27
+#include <stdlib.h>
28
29
char *xmalloc (int size)
30
{