diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-01-22 22:08:07 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-01-22 22:08:07 +0100 |
commit | 058951bb80bed643b0a0c57b1d4da1889d92626e (patch) | |
tree | ea004f719ad4ebc6d6e89fdf2e96384423af20a6 | |
parent | 26d36c3ae2fd6ae40148be58589ea5e81b0ca341 (diff) |
devtls: remove static "already" flag in tlsinit(). this function is only run once.
-rw-r--r-- | sys/src/9/port/devtls.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/src/9/port/devtls.c b/sys/src/9/port/devtls.c index 7ed6d2755..177d8ecb4 100644 --- a/sys/src/9/port/devtls.c +++ b/sys/src/9/port/devtls.c @@ -1793,12 +1793,8 @@ tlsinit(void) struct Hashalg *h; int n; char *cp; - static int already; - if(!already){ - fmtinstall('H', encodefmt); - already = 1; - } + fmtinstall('H', encodefmt); tlsdevs = smalloc(sizeof(TlsRec*) * maxtlsdevs); trnames = smalloc((sizeof *trnames) * maxtlsdevs); |