From 02f282368e6e68ac1c8dffcfd6e772ec4ff356f8 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 12 Jan 2012 12:19:54 +0100 Subject: [PATCH] gpg: Remove unused fields from a trust data structure. The functions tdbio_read_record and tdbio_write_record control the actual on-disk format. Thus there is no need to keep reserved fields in the internal data structure. * g10/tdbio.h (struct trust_record): Remove reserved fields. --- g10/tdbio.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/g10/tdbio.h b/g10/tdbio.h index d6af98fd0..5360ce967 100644 --- a/g10/tdbio.h +++ b/g10/tdbio.h @@ -56,10 +56,7 @@ struct trust_record { byte trust_model; ulong created; /* timestamp of trustdb creation */ ulong nextcheck; /* timestamp of next scheduled check */ - ulong reserved; - ulong reserved2; ulong firstfree; - ulong reserved3; ulong trusthashtbl; } ver; struct { /* free record */ @@ -81,7 +78,7 @@ struct trust_record { } trust; struct { byte namehash[20]; - ulong next; + ulong next; byte validity; byte full_count; byte marginal_count;