diff options
author | joshua <joshua@cvs.openbsd.org> | 2024-03-26 01:15:58 +0000 |
---|---|---|
committer | joshua <joshua@cvs.openbsd.org> | 2024-03-26 01:15:58 +0000 |
commit | 408f0b83add6d3e68408df30dde605d8cddfa2d9 (patch) | |
tree | 0960d6116e42ff10b4a5437fddfc93f6b5c128db | |
parent | e77167e01107973a1cb92e25d7089f0ee8d36b24 (diff) |
Use errno_value instead of num for readability
ok jsing@
-rw-r--r-- | lib/libtls/tls.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libtls/tls.c b/lib/libtls/tls.c index 09b82bd1916..58245009d74 100644 --- a/lib/libtls/tls.c +++ b/lib/libtls/tls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls.c,v 1.99 2024/03/26 00:50:22 joshua Exp $ */ +/* $OpenBSD: tls.c,v 1.100 2024/03/26 01:15:57 joshua Exp $ */ /* * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> * @@ -146,12 +146,12 @@ int tls_config_set_error(struct tls_config *config, const char *fmt, ...) { va_list ap; - int errnum, rv; + int errno_value, rv; - errnum = errno; + errno_value = errno; va_start(ap, fmt); - rv = tls_error_vset(&config->error, errnum, fmt, ap); + rv = tls_error_vset(&config->error, errno_value, fmt, ap); va_end(ap); return (rv); @@ -174,12 +174,12 @@ int tls_set_error(struct tls *ctx, const char *fmt, ...) { va_list ap; - int errnum, rv; + int errno_value, rv; - errnum = errno; + errno_value = errno; va_start(ap, fmt); - rv = tls_error_vset(&ctx->error, errnum, fmt, ap); + rv = tls_error_vset(&ctx->error, errno_value, fmt, ap); va_end(ap); return (rv); |