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.

34 lines
750 B

  1. Index: mpack-1.6/unixos.c
  2. ===================================================================
  3. --- mpack-1.6.orig/unixos.c
  4. +++ mpack-1.6/unixos.c
  5. @@ -25,6 +25,7 @@
  6. #include <stdio.h>
  7. #include <ctype.h>
  8. #include <string.h>
  9. +#include <stdlib.h>
  10. #include <errno.h>
  11. #include <sys/types.h>
  12. #include <sys/param.h>
  13. @@ -39,8 +40,6 @@
  14. #endif
  15. extern int errno;
  16. -extern char *malloc();
  17. -extern char *getenv();
  18. int overwrite_files = 0;
  19. int didchat;
  20. Index: mpack-1.6/xmalloc.c
  21. ===================================================================
  22. --- mpack-1.6.orig/xmalloc.c
  23. +++ mpack-1.6/xmalloc.c
  24. @@ -24,7 +24,7 @@
  25. */
  26. #include <stdio.h>
  27. #include <string.h>
  28. -extern char *malloc(), *realloc();
  29. +#include <stdlib.h>
  30. char *xmalloc (int size)
  31. {