return(NULL);
}
+/* lifted from lib/ZSendPkt.c wait_for_hmack, but waits for SERVACK instead */
+static int wait_for_srvack(notice, uid)
+ ZNotice_t *notice;
+ ZUnique_Id_t *uid;
+{
+ return (notice->z_kind == SERVACK && ZCompareUID(¬ice->z_uid, uid));
+}
+
Code_t Z_SendLocation(class, opcode, auth, format)
char *class;
char *opcode;
if ((retval = ZSendList(¬ice, bptr, 3, auth)) != ZERR_NONE)
return (retval);
- retval = Z_WaitForNotice (&retnotice, ZCompareUIDPred, ¬ice.z_uid,
+ retval = Z_WaitForNotice (&retnotice, wait_for_srvack, ¬ice.z_uid,
SRV_TIMEOUT);
if (retval != ZERR_NONE)
return retval;