chiark / gitweb /
pubkeys: Introduce `fill' variable to make code prettier
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 24 Nov 2019 10:27:54 +0000 (10:27 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 15 Feb 2020 21:56:51 +0000 (21:56 +0000)
No functional change.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
pubkeys.fl.pl

index 4c3009107701cb841dda38728e3cb58f965fe07b..ec1cba60610dcbe5edd996059c9eaac1f51faeba 100755 (executable)
@@ -238,13 +238,12 @@ static struct pubkeyset_context c[1];
        }
        pubkey->sethash(pubkey->st,c->defhash);
     }
-    memcpy(c->building->keys[c->building->nkeys].id.b,
-          c->grpid,
-           GRPIDSZ);
+    struct peer_pubkey *fill=&c->building->keys[c->building->nkeys];
+    memcpy(fill->id.b,c->grpid,GRPIDSZ);
     assert(ALGIDSZ==1); /* otherwise need htons or htonl or something */
-    c->building->keys[c->building->nkeys].id.b[GRPIDSZ]=
-      c->scheme->algid;
-    c->building->keys[c->building->nkeys++].pubkey=pubkey;
+    fill->id.b[GRPIDSZ]=c->scheme->algid;
+    fill->pubkey=pubkey;
+    c->building->nkeys++;
 !}
 
 !KEYWORD serial