repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
init.c: use list macro when removing pdus from the wait list
[deb_libnfs.git]
/
lib
/
init.c
diff --git
a/lib/init.c
b/lib/init.c
index 782a7ea3edbac2da46c4c557d2de37a945ca24cb..bbed183fdf4fc8367d63d4630fdc96da2d2891dd 100644
(file)
--- a/
lib/init.c
+++ b/
lib/init.c
@@
-235,7
+235,7
@@
void rpc_destroy_context(struct rpc_context *rpc)
while((pdu = rpc->outqueue.head) != NULL) {
pdu->cb(rpc, RPC_STATUS_CANCEL, NULL, pdu->private_data);
while((pdu = rpc->outqueue.head) != NULL) {
pdu->cb(rpc, RPC_STATUS_CANCEL, NULL, pdu->private_data);
-
rpc->outqueue.head = pdu->next
;
+
LIBNFS_LIST_REMOVE(&rpc->outqueue.head, pdu)
;
rpc_free_pdu(rpc, pdu);
}
rpc_free_pdu(rpc, pdu);
}
@@
-244,7
+244,7
@@
void rpc_destroy_context(struct rpc_context *rpc)
while((pdu = q->head) != NULL) {
pdu->cb(rpc, RPC_STATUS_CANCEL, NULL, pdu->private_data);
while((pdu = q->head) != NULL) {
pdu->cb(rpc, RPC_STATUS_CANCEL, NULL, pdu->private_data);
-
rpc->outqueue.head = pdu->next
;
+
LIBNFS_LIST_REMOVE(&q->head, pdu)
;
rpc_free_pdu(rpc, pdu);
}
}
rpc_free_pdu(rpc, pdu);
}
}