From ababc84b5d767f7b333a0487d9873f4817ed5cb8 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 24 Nov 2019 10:27:54 +0000 Subject: [PATCH] pubkeys: Introduce `fill' variable to make code prettier No functional change. Signed-off-by: Ian Jackson --- pubkeys.fl.pl | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pubkeys.fl.pl b/pubkeys.fl.pl index 4c30091..ec1cba6 100755 --- a/pubkeys.fl.pl +++ b/pubkeys.fl.pl @@ -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 -- 2.30.2