From: joshua Date: Tue, 26 Mar 2024 01:15:57 +0000 (+0000) Subject: Use errno_value instead of num for readability X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=aa2571bdaea28dbf969bfdc32319eb67d066f858;p=openbsd Use errno_value instead of num for readability ok jsing@ --- 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);