aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2012-01-12 11:19:54 +0000
committerWerner Koch <[email protected]>2012-01-12 11:19:54 +0000
commit02f282368e6e68ac1c8dffcfd6e772ec4ff356f8 (patch)
treee4cf44c84d79b54cb18a012c278bf09a633bb783
parentTypo fixes and comment re-formatting. (diff)
downloadgnupg-02f282368e6e68ac1c8dffcfd6e772ec4ff356f8.tar.gz
gnupg-02f282368e6e68ac1c8dffcfd6e772ec4ff356f8.zip
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.
-rw-r--r--g10/tdbio.h5
1 files changed, 1 insertions, 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;