diff options
Diffstat (limited to 'lib/ZSendPkt.c')
-rw-r--r-- | lib/ZSendPkt.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/ZSendPkt.c b/lib/ZSendPkt.c index 58b630c..0058eb3 100644 --- a/lib/ZSendPkt.c +++ b/lib/ZSendPkt.c @@ -21,8 +21,6 @@ Code_t ZSendPacket(packet,len) ZPacket_t packet; int len; { - int findack(); - Code_t retval; struct sockaddr_in dest; struct timeval tv; @@ -55,7 +53,8 @@ Code_t ZSendPacket(packet,len) for (i=0;i<HM_TIMEOUT*2;i++) { select(0,&t1,&t2,&t3,&tv); retval = ZCheckIfNotice(ackpack,sizeof ackpack,¬ice, - &auth,findack,(char *)¬ice.z_uid); + &auth,ZCompareUIDPred, + (char *)¬ice.z_uid); if (retval == ZERR_NONE) return (ZERR_NONE); if (retval != ZERR_NONOTICE) @@ -63,10 +62,3 @@ Code_t ZSendPacket(packet,len) } return (ZERR_HMDEAD); } - -static int findack(notice,uid) - ZNotice_t *notice; - ZUnique_Id_t *uid; -{ - return (ZCompareUID(uid,¬ice->z_uid)); -} |