summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Taylor <mctaylor@mctaylor.com>2002-12-26 18:26:04 +0000
committerMichael Taylor <mctaylor@mctaylor.com>2002-12-26 18:26:04 +0000
commitc5ca9be8a7682a5b6e338a5d4d9ae0416379a3dd (patch)
treeeee8353e5abd8719bf9a81456d746f548ad61b99
parentc52cae4e44c0b53ece5f3bd55cb6777239223cdb (diff)
Changed sys_errlist[] to strerror()
-rw-r--r--kiss/kissnetd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kiss/kissnetd.c b/kiss/kissnetd.c
index 99e31dd..2000482 100644
--- a/kiss/kissnetd.c
+++ b/kiss/kissnetd.c
@@ -104,7 +104,7 @@ static void ReopenPort(int PortNumber)
PortList[PortNumber]->Fd = open(PortList[PortNumber]->Name, O_RDWR | O_NONBLOCK);
if (PortList[PortNumber]->Fd < 0) {
syslog(LOG_WARNING, "kissnetd : Error opening port %s : %s\n",
- PortList[PortNumber]->Name, sys_errlist[errno]);
+ PortList[PortNumber]->Name, strerror(errno));
if (VerboseMode) {
sprintf(MyString, "cannot reopen %s", PortList[PortNumber]->Name);
perror(MyString);
@@ -160,7 +160,7 @@ static void ProcessInput(int PortNumber)
if (!Length) return;
if (Length < 0) {
syslog(LOG_WARNING, "kissnetd : Error reading port %s : %s\n",
- PortList[PortNumber]->Name, sys_errlist[errno]);
+ PortList[PortNumber]->Name, strerror(errno));
if (VerboseMode) perror("read");
close(MyPort->Fd);
MyPort->Fd = -1;