summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2019-01-22 22:08:07 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2019-01-22 22:08:07 +0100
commit058951bb80bed643b0a0c57b1d4da1889d92626e (patch)
treeea004f719ad4ebc6d6e89fdf2e96384423af20a6 /sys
parent26d36c3ae2fd6ae40148be58589ea5e81b0ca341 (diff)
devtls: remove static "already" flag in tlsinit(). this function is only run once.
Diffstat (limited to 'sys')
-rw-r--r--sys/src/9/port/devtls.c6
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);