patch-libtemplate_util_system_c 848 B

123456789101112131415161718192021222324252627282930
  1. $OpenBSD: patch-libtemplate_util_system_c,v 1.1 2016/03/18 16:41:53 naddy Exp $
  2. --- libtemplate/util/system.c.orig Thu Nov 21 03:28:52 1996
  3. +++ libtemplate/util/system.c Thu Mar 17 23:04:41 2016
  4. @@ -50,6 +50,7 @@ static char rcsid[] = "$Id: system.c,v 1.22 1995/02/04
  5. * copyright, including distribution and use limitations.
  6. */
  7. #include <stdlib.h>
  8. +#include <string.h>
  9. #include <unistd.h>
  10. #include <sys/wait.h>
  11. #include <signal.h>
  12. @@ -117,7 +118,7 @@ char *cmd;
  13. _exit(1);
  14. }
  15. /* parent */
  16. - (void) waitpid(pid, &status, (int) NULL);
  17. + (void) waitpid(pid, &status, 0);
  18. return (WEXITSTATUS(status));
  19. }
  20. @@ -172,7 +173,7 @@ int lifetime;
  21. return;
  22. }
  23. if (dsl_pid) { /* parent */
  24. - (void) waitpid(dsl_pid, (int *) NULL, (int) NULL);
  25. + (void) waitpid(dsl_pid, (int *) NULL, 0);
  26. alarm(0);
  27. return;
  28. } else { /* child */