summaryrefslogtreecommitdiff
path: root/lib/ZCkIfNot.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/ZCkIfNot.c
parent4aec721b9ef06f2057cf0eab0cdc676702967709 (diff)
auditing changes
Diffstat (limited to 'lib/ZCkIfNot.c')
-rw-r--r--lib/ZCkIfNot.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/ZCkIfNot.c b/lib/ZCkIfNot.c
index a7b3e34..3cb5e91 100644
--- a/lib/ZCkIfNot.c
+++ b/lib/ZCkIfNot.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".
*/
@@ -40,7 +40,7 @@ Code_t ZCheckIfNotice(notice, from, predicate, args)
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);
@@ -51,7 +51,8 @@ Code_t ZCheckIfNotice(notice, from, predicate, args)
free(buffer);
return (retval);
}
- return (Z_RemQueue(qptr));
+ Z_RemQueue(qptr);
+ return (ZERR_NONE);
}
qptr = Z_GetNextComplete(qptr);
}