patch-arc_c 862 B

123456789101112131415161718192021222324252627282930
  1. $OpenBSD: patch-arc_c,v 1.4 2011/05/30 10:58:28 jasper Exp $
  2. --- arc.c.orig Sat Aug 7 15:06:42 2010
  3. +++ arc.c Mon May 30 11:55:37 2011
  4. @@ -129,6 +129,7 @@ main(num, arg) /* system entry point */
  5. #if UNIX
  6. struct stat sbuf;
  7. #endif
  8. + int fd;
  9. if (num < 3) {
  10. printf("ARC - Archive utility, Version 5.21p, created on 08/07/2010\n");
  11. @@ -228,7 +229,7 @@ main(num, arg) /* system entry point */
  12. #if !MSDOS
  13. {
  14. strcat(arctemp, "AXXXXXX");
  15. - int fd = mkstemp(arctemp);
  16. + fd = mkstemp(arctemp);
  17. if (fd == -1)
  18. {
  19. fprintf(stderr, "Unable to create temporary files: %s\n", strerror(errno));
  20. @@ -298,7 +299,7 @@ main(num, arg) /* system entry point */
  21. keepbak = 1;
  22. else if (*a == 'W') /* suppress warnings */
  23. - warn = 0;
  24. + arcwarn = 0;
  25. #if !DOS
  26. else if (*a == 'I') /* image mode, no ASCII/EBCDIC x-late */
  27. image = !image;