From 408f0b83add6d3e68408df30dde605d8cddfa2d9 Mon Sep 17 00:00:00 2001 From: joshua Date: Tue, 26 Mar 2024 01:15:58 +0000 Subject: Use errno_value instead of num for readability ok jsing@ --- lib/libtls/tls.c | 14 +++++++------- 1 file 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 * @@ -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); -- cgit v1.2.3