From b4b59303f7a2c7a4d63d32060422c0899ce394aa Mon Sep 17 00:00:00 2001 From: chatty Date: Mon, 29 Nov 1993 12:28:30 +0000 Subject: Changed syntax of UchMsgBuffer::Get Replace index with strchr --- comm/OLD/portserv.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'comm/OLD/portserv.cc') diff --git a/comm/OLD/portserv.cc b/comm/OLD/portserv.cc index bbbeec8..7719be5 100644 --- a/comm/OLD/portserv.cc +++ b/comm/OLD/portserv.cc @@ -107,7 +107,7 @@ ParseConfigLine (char* line) for (; *s; s++) { switch (where) { case IN_WORD: - if (index (" \t(),", *s)) { + if (strchr (" \t(),", *s)) { *s = '\0'; where = IN_SPACE; if (nw < 255) @@ -133,7 +133,7 @@ ParseConfigLine (char* line) where = IN_QUOTE; word = s+1; } else - if (index (" \t(),", *s)) { + if (strchr (" \t(),", *s)) { *s = '\0'; } else { where = IN_WORD; @@ -482,7 +482,7 @@ RegistrationChannel :: HandleRead () return; } - if (! buf.Get (&req)) { + if (! buf.Get (req)) { Error (ErrWarn, "Receive", "could not read message"); return; } @@ -676,7 +676,7 @@ BroadcastChannel :: HandleRead () SysError (ErrFatal, "BroadcastChannel", EINTR); return; } - if (! buf.Get (&req)) { + if (! buf.Get (req)) { Error (ErrWarn, "BroadcastChannel", "could not read message"); return; } -- cgit v1.1