patch-rfc931_c 694 B

1234567891011121314151617181920212223242526
  1. $OpenBSD: patch-rfc931_c,v 1.1 2004/01/09 02:43:49 jose Exp $
  2. --- rfc931.c.orig 2003-12-31 06:48:04.000000000 -0500
  3. +++ rfc931.c 2003-12-31 07:08:28.000000000 -0500
  4. @@ -24,6 +24,7 @@ static char sccsid[] = "@(#) rfc931.c 1.
  5. #include <setjmp.h>
  6. #include <signal.h>
  7. #include <string.h>
  8. +#include <unistd.h>
  9. /* Local stuff. */
  10. @@ -46,11 +47,11 @@ int protocol;
  11. FILE *fp;
  12. if ((s = socket(domain, type, protocol)) < 0) {
  13. - my_error(LOG_DAEMON|LOG_ERR, "socket: %m");
  14. + my_error("socket: %m");
  15. return (0);
  16. } else {
  17. if ((fp = fdopen(s, "r+")) == 0) {
  18. - my_error(LOG_DAEMON|LOG_ERR, "fdopen: %m");
  19. + my_error("fdopen: %m");
  20. close(s);
  21. }
  22. return (fp);