Fixed typos

This commit is contained in:
schmirl 2007-04-23 11:30:55 +00:00
parent 130d7dcc08
commit c515e82f04

View File

@ -1,5 +1,5 @@
/*
* $Id: filter.c,v 1.5 2007/04/23 11:25:59 schmirl Exp $
* $Id: filter.c,v 1.6 2007/04/23 11:30:55 schmirl Exp $
*/
#include "client/filter.h"
@ -52,16 +52,16 @@ cStreamdevFilter::cStreamdevFilter(u_short Pid, u_char Tid, u_char Mask) {
#ifdef SOCK_SEQPACKET
// SOCK_SEQPACKET (since kernel 2.6.4)
if (socketpair(AF_UNIX, SOCK_SEQPACKET, 0, m_Pipe) != 0) {
esyslog("streamev-client: socketpair(SOCK_SEQPACKET) failed: %m, trying SOCK_DGRAM");
esyslog("streamdev-client: socketpair(SOCK_SEQPACKET) failed: %m, trying SOCK_DGRAM");
}
#endif
if (m_Pipe[0] < 0 && socketpair(AF_UNIX, SOCK_DGRAM, 0, m_Pipe) != 0) {
esyslog("streamev-client: coudln't open section filter socket: %m");
esyslog("streamdev-client: couldn't open section filter socket: %m");
}
else if(fcntl(m_Pipe[0], F_SETFL, O_NONBLOCK) != 0 ||
fcntl(m_Pipe[1], F_SETFL, O_NONBLOCK) != 0) {
esyslog("streamev-client: coudln't set section filter socket to non-blocking mode: %m");
esyslog("streamdev-client: couldn't set section filter socket to non-blocking mode: %m");
}
}
@ -111,7 +111,7 @@ bool cStreamdevFilter::IsClosed(void) {
if (errno != ECONNREFUSED &&
errno != ECONNRESET &&
errno != EPIPE)
esyslog("cStreamdevFilter::TestPipe: failed: %m");
esyslog("cStreamdevFilter::IsClosed failed: %m");
return true;
}