From 58e8bf10994e0b5fb0845d9b128c6346ec2a795e Mon Sep 17 00:00:00 2001 From: jan Date: Fri, 2 Aug 2024 21:08:47 +0000 Subject: [PATCH] nc(1): remove useless function pointer dereferencing ok tb@ --- usr.bin/nc/netcat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/nc/netcat.c b/usr.bin/nc/netcat.c index 54ddd0ffccf..856a01c2b44 100644 --- a/usr.bin/nc/netcat.c +++ b/usr.bin/nc/netcat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netcat.c,v 1.226 2023/08/14 08:07:27 tb Exp $ */ +/* $OpenBSD: netcat.c,v 1.227 2024/08/02 21:08:47 jan Exp $ */ /* * Copyright (c) 2001 Eric Jackson * Copyright (c) 2015 Bob Beck. All rights reserved. @@ -778,7 +778,7 @@ timeout_tls(int s, struct tls *tls_ctx, int (*func)(struct tls *)) struct pollfd pfd; int ret; - while ((ret = (*func)(tls_ctx)) != 0) { + while ((ret = func(tls_ctx)) != 0) { if (ret == TLS_WANT_POLLIN) pfd.events = POLLIN; else if (ret == TLS_WANT_POLLOUT) -- 2.20.1