summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJan Klemkow <jan@cvs.openbsd.org>2024-08-02 21:08:48 +0000
committerJan Klemkow <jan@cvs.openbsd.org>2024-08-02 21:08:48 +0000
commitf7338a1dda63d06fb94419bbdab22399365bff45 (patch)
treec92313dd53a78f905bfc62091c9003caf48d67d6 /usr.bin
parent0fb35a43991024a7caf307cf87d09c37911cec9b (diff)
nc(1): remove useless function pointer dereferencing
ok tb@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/nc/netcat.c4
1 files 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 <ericj@monkey.org>
* 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)