diff options
author | Robert S. French <rfrench@mit.edu> | 1987-08-01 11:27:17 +0000 |
---|---|---|
committer | Robert S. French <rfrench@mit.edu> | 1987-08-01 11:27:17 +0000 |
commit | d6a97078624a680d8fc8670db4b17941d2003562 (patch) | |
tree | f0f29af53e31ade13962bf0122536f1ee59bab90 /lib/ZIfNotice.c | |
parent | e3bfca3ee22a86d6587b111af7412cd73b288242 (diff) |
Changed to handle new protocol format
Diffstat (limited to 'lib/ZIfNotice.c')
-rw-r--r-- | lib/ZIfNotice.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/ZIfNotice.c b/lib/ZIfNotice.c index 8db08fc..ef3cdc5 100644 --- a/lib/ZIfNotice.c +++ b/lib/ZIfNotice.c @@ -20,16 +20,16 @@ static char rcsid_ZIfNotice_c[] = "$Header$"; #include <zephyr/zephyr_internal.h> -Code_t ZIfNotice(buffer,buffer_len,notice,auth,predicate,args) +Code_t ZIfNotice(buffer,buffer_len,notice,from,predicate,args) ZPacket_t buffer; int buffer_len; ZNotice_t *notice; - int *auth; + struct sockaddr_in *from; int (*predicate)(); char *args; { ZNotice_t tmpnotice; - int qcount,retval,tmpauth; + int qcount,retval; struct _Z_InputQ *qptr; if (__Q_Length) @@ -45,16 +45,16 @@ Code_t ZIfNotice(buffer,buffer_len,notice,auth,predicate,args) for (;;qcount--) { if ((retval = ZParseNotice(qptr->packet,qptr->packet_len, - &tmpnotice,auth?&tmpauth:0, - &qptr->from)) != ZERR_NONE) + &tmpnotice)) != ZERR_NONE) return (retval); if ((predicate)(&tmpnotice,args)) { if (qptr->packet_len > buffer_len) return (ZERR_PKTLEN); bcopy(qptr->packet,buffer,qptr->packet_len); + if (from) + *from = qptr->from; if ((retval = ZParseNotice(buffer,qptr->packet_len, - notice,auth, - &qptr->from)) + notice)) != ZERR_NONE) return (retval); return (Z_RemQueue(qptr)); |