From fb888d7aebe09de421f470f917b1cf40bf3d917a Mon Sep 17 00:00:00 2001 From: joshua <> Date: Tue, 26 Mar 2024 01:15:57 +0000 Subject: Use errno_value instead of num for readability ok jsing@ --- src/lib/libtls/tls.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/lib/libtls/tls.c') diff --git a/src/lib/libtls/tls.c b/src/lib/libtls/tls.c index 09b82bd191..58245009d7 100644 --- a/src/lib/libtls/tls.c +++ b/src/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-55-g6feb