patch-rw_libpnmrw_c 698 B

1234567891011121314151617181920212223242526272829
  1. $OpenBSD: patch-rw_libpnmrw_c,v 1.4 2005/05/24 19:49:28 naddy Exp $
  2. --- rw/libpnmrw.c.orig Mon May 23 22:58:49 2005
  3. +++ rw/libpnmrw.c Mon May 23 23:01:23 2005
  4. @@ -132,6 +132,7 @@ pm_freearray(char **its, int rows)
  5. static void
  6. pm_perror(char *reason)
  7. {
  8. +#if !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__NetBSD__)
  9. #if defined(BSD4_4)
  10. __const extern char *__const sys_errlist[];
  11. #else
  12. @@ -147,6 +148,7 @@ pm_perror(char *reason)
  13. #endif
  14. #endif
  15. #endif
  16. +#endif
  17. char *e;
  18. #ifdef MISSING_STRERROR
  19. @@ -287,7 +289,7 @@ pbm_readmagicnumber(FILE * file)
  20. static int
  21. pbm_getint(FILE * file)
  22. {
  23. - register char ich;
  24. + register int ich;
  25. register int i;
  26. do {