From: Ian Jackson Date: Sat, 7 Dec 2019 15:41:06 +0000 (+0000) Subject: privcache: Minor style fixes X-Git-Tag: v0.6.0~41 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=60725608deb1940a9c60ee7da6ceec981f639088;p=secnet.git privcache: Minor style fixes We had some unconventional-for-secnet whitespace around `='. Signed-off-by: Ian Jackson --- diff --git a/privcache.c b/privcache.c index c8a9a7f..1f46eb0 100644 --- a/privcache.c +++ b/privcache.c @@ -80,7 +80,7 @@ static struct sigprivkey_if *uncached_load_file( FILE *f=0; struct sigprivkey_if *sigpriv=0; - f = fopen(path,"rb"); + f=fopen(path,"rb"); if (!f) { if (errno == ENOENT) { slilog(log,M_DEBUG,"private key %s not found", @@ -136,7 +136,7 @@ static struct sigprivkey_if *uncached_load_file( static struct sigprivkey_if *privcache_lookup(void *sst, const struct sigkeyid *id, struct log_if *log) { - struct privcache *st = sst; + struct privcache *st=sst; int was; struct ent result; @@ -148,10 +148,10 @@ static struct sigprivkey_if *privcache_lookup(void *sst, } if (st->used < st->alloc) { - was = st->used; + was=st->used; st->used++; } else { - was = st->used-1; + was=st->used-1; if (st->ents[was].sigpriv) { st->ents[was].sigpriv->dispose(st->ents[was].sigpriv->st); } @@ -162,7 +162,7 @@ static struct sigprivkey_if *privcache_lookup(void *sst, found: memmove(&st->ents[1], &st->ents[0], sizeof(st->ents[0]) * was); - st->ents[0] = result; + st->ents[0]=result; return result.sigpriv; }