patch-loadfile_c 480 B

1234567891011121314151617181920212223
  1. $OpenBSD: patch-loadfile_c,v 1.1 2010/05/23 16:13:33 espie Exp $
  2. --- loadfile.c.orig Sat Apr 1 13:17:21 1995
  3. +++ loadfile.c Sun May 23 18:10:41 2010
  4. @@ -2,8 +2,9 @@
  5. #include <sys/types.h>
  6. #include <sys/stat.h>
  7. #include <sys/fcntl.h>
  8. +#include <stdlib.h>
  9. +#include <errno.h>
  10. -extern errno;
  11. char *loadfile(path)
  12. char *path;
  13. @@ -20,7 +21,6 @@ char *path;
  14. struct stat statbuf;
  15. char *data;
  16. - char *malloc();
  17. int fd;
  18. if (stat(path, &statbuf) == -1)