summaryrefslogtreecommitdiff
path: root/lib/ZPeekIfNot.c
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1988-06-29 12:40:24 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1988-06-29 12:40:24 +0000
commit515e7a50ee7bbc1f74c582997bb4e874b2497ae0 (patch)
tree0fe6e848c622272de858b6e84dc88c81632e8268 /lib/ZPeekIfNot.c
parent4aec721b9ef06f2057cf0eab0cdc676702967709 (diff)
auditing changes
Diffstat (limited to 'lib/ZPeekIfNot.c')
-rw-r--r--lib/ZPeekIfNot.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/ZPeekIfNot.c b/lib/ZPeekIfNot.c
index 253639a..e1c560a 100644
--- a/lib/ZPeekIfNot.c
+++ b/lib/ZPeekIfNot.c
@@ -6,7 +6,7 @@
* $Source$
* $Author$
*
- * Copyright (c) 1987 by the Massachusetts Institute of Technology.
+ * Copyright (c) 1987,1988 by the Massachusetts Institute of Technology.
* For copying and distribution information, see the file
* "mit-copyright.h".
*/
@@ -34,14 +34,13 @@ Code_t ZPeekIfNotice(notice, from, predicate, args)
if ((retval = Z_WaitForComplete()) != ZERR_NONE)
return (retval);
- qptr = Z_GetFirstComplete();
-
for (;;) {
+ qptr = Z_GetFirstComplete();
while (qptr) {
if ((retval = ZParseNotice(qptr->packet, qptr->packet_len,
&tmpnotice)) != ZERR_NONE)
return (retval);
- if ((predicate)(&tmpnotice, args)) {
+ if ((*predicate)(&tmpnotice, args)) {
if (!(buffer = malloc((unsigned) qptr->packet_len)))
return (ENOMEM);
bcopy(qptr->packet, buffer, qptr->packet_len);