gpg: Remove unused fields from a trust data structure.
authorWerner Koch <wk@gnupg.org>
Thu, 12 Jan 2012 11:19:54 +0000 (12:19 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 12 Jan 2012 11:19:54 +0000 (12:19 +0100)
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

index d6af98f..5360ce9 100644 (file)
@@ -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;