patch-unix_unix_c 974 B

1234567891011121314151617181920212223242526272829303132
  1. $OpenBSD: patch-unix_unix_c,v 1.3 2009/01/14 16:59:51 sturm Exp $
  2. --- unix/unix.c.orig Fri Dec 12 23:07:25 2008
  3. +++ unix/unix.c Fri Dec 12 23:08:04 2008
  4. @@ -344,7 +344,7 @@ ulg filetime(f, a, n, t)
  5. z_stat s; /* results of stat() */
  6. /* converted to pointer from using FNMAX - 11/8/04 EG */
  7. char *name;
  8. - int len = strlen(f);
  9. + size_t len = strlen(f);
  10. if (f == label) {
  11. if (a != NULL)
  12. @@ -570,7 +570,7 @@ int set_extra_field(z, z_utim)
  13. {
  14. z_stat s;
  15. char *name;
  16. - int len = strlen(z->name);
  17. + size_t len = strlen(z->name);
  18. /* For the full sized UT local field including the UID/GID fields, we
  19. * have to stat the file again. */
  20. @@ -695,7 +695,8 @@ char *d; /* directory to delete */
  21. {
  22. # ifdef NO_RMDIR
  23. /* code from Greg Roelofs, who horked it from Mark Edwards (unzip) */
  24. - int r, len;
  25. + size_t len;
  26. + int r;
  27. char *s; /* malloc'd string for system command */
  28. len = strlen(d);