pkgsrc/comms/xtel/patches/patch-ag

62 lines
1.4 KiB
Text

$NetBSD: patch-ag,v 1.1.1.1 2002/01/12 18:34:56 bouyer Exp $
--- xteld.c.orig Sat Jan 12 19:24:14 2002
+++ xteld.c Sat Jan 12 19:25:38 2002
@@ -624,12 +624,12 @@
flag_crlf = True;
if (pipe (tuyau_in) < 0) {
- log_err ("pipe: tuyau_in: %m");
+ log_err ("pipe: tuyau_in: %s", strerror(errno));
exit (1);
}
if (pipe (tuyau_out) < 0) {
- log_err ("pipe: tuyau_out: %m");
+ log_err ("pipe: tuyau_out: %s", strerror(errno));
exit (1);
}
@@ -674,7 +674,7 @@
#endif
if (execvp (code_teletel, Argv) < 0) {
- log_err ("execlp: %m");
+ log_err ("execlp: %s", strerror(errno));
exit (1);
}
}
@@ -1060,7 +1060,7 @@
return 0;
err:
- log_err ("read: %m");
+ log_err ("read: %s", strerror(errno));
return -1;
}
@@ -1079,13 +1079,13 @@
/* Adresse du client */
len = sizeof (client);
if (getpeername (XTELD_INPUT, (struct sockaddr *) &client, &len) < 0) {
- log_err ("getpeername: %m");
+ log_err ("getpeername: %s", strerror(errno));
}
else {
struct hostent *h;
if ((h = gethostbyaddr ((char *)&client.sin_addr, sizeof(client.sin_addr), AF_INET)) == NULL) {
- log_err ("gethostbyaddr: %m");
+ log_err ("gethostbyaddr: %s", strerror(errno));
return NULL;
}
else
@@ -1391,7 +1391,7 @@
return 1;
err:
- log_err ("read: %m");
+ log_err ("read: %s", strerror(errno));
return -1;
}