X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/05d5b193ee05a187d4f3fd05a4be1fbb6bf937b6..393d83b8760584006eaefd6fc370abead228e02a:/merge.c diff --git a/merge.c b/merge.c index c51474c..d2d2beb 100644 --- a/merge.c +++ b/merge.c @@ -4,11 +4,8 @@ * Jonathan McDowell * * Copyright 2002 Project Purple - * - * $Id: merge.c,v 1.11 2003/06/07 13:45:35 noodles Exp $ */ -#include #include #include #include @@ -176,7 +173,7 @@ int merge_packet_sigs(struct openpgp_signedpacket_list *old, struct openpgp_packet_list *curpacket = NULL; struct openpgp_packet_list *nextpacket = NULL; - assert(compare_packets(old->packet, new->packet)); + log_assert(compare_packets(old->packet, new->packet)); curpacket = new->sigs; while (curpacket != NULL) { @@ -196,7 +193,7 @@ int merge_packet_sigs(struct openpgp_signedpacket_list *old, if (lastpacket != NULL) { lastpacket->next = curpacket->next; } else { - assert(curpacket == new->sigs); + log_assert(curpacket == new->sigs); new->sigs = curpacket->next; } curpacket->next = NULL; @@ -321,7 +318,7 @@ int merge_keys(struct openpgp_publickey *a, struct openpgp_publickey *b) if (lastpacket != NULL) { lastpacket->next = curpacket->next; } else { - assert(curpacket == b->revocations); + log_assert(curpacket == b->revocations); b->revocations = curpacket->next; } curpacket->next = NULL;