You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
519 B

  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. extern int errno;
  14. -extern char *malloc();
  15. -extern char *getenv();
  16. int overwrite_files = 0;
  17. int didchat;
  18. --- a/xmalloc.c
  19. +++ b/xmalloc.c
  20. @@ -24,7 +24,7 @@
  21. */
  22. #include <stdio.h>
  23. #include <string.h>
  24. -extern char *malloc(), *realloc();
  25. +#include <stdlib.h>
  26. char *xmalloc (int size)
  27. {