From 4c311bff4099d16bbf9b70e1efbb95a6e7c4eb65 Mon Sep 17 00:00:00 2001 From: dlg Date: Wed, 5 Jan 2022 05:41:25 +0000 Subject: [PATCH] fix another -Wunused-but-set-variable --- usr.sbin/tcpdump/print-cnfp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/usr.sbin/tcpdump/print-cnfp.c b/usr.sbin/tcpdump/print-cnfp.c index b779f62a015..e40ac8e8cd4 100644 --- a/usr.sbin/tcpdump/print-cnfp.c +++ b/usr.sbin/tcpdump/print-cnfp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-cnfp.c,v 1.10 2018/07/06 05:47:22 dlg Exp $ */ +/* $OpenBSD: print-cnfp.c,v 1.11 2022/01/05 05:41:25 dlg Exp $ */ /* * Copyright (c) 1998 Michael Shalayeff @@ -73,7 +73,6 @@ cnfp_print(const u_char *cp, u_int len) const struct nfhdr *nh; const struct nfrec *nr; int nrecs, ver, proto; - time_t t; nh = (struct nfhdr *)cp; @@ -82,7 +81,6 @@ cnfp_print(const u_char *cp, u_int len) nrecs = ntohl(nh->ver_cnt) & 0xffff; ver = (ntohl(nh->ver_cnt) & 0xffff0000) >> 16; - t = ntohl(nh->utc_sec); /* (p = ctime(&t))[24] = '\0'; */ printf("NetFlow v%x, %u.%03u uptime, %u.%09u, ", ver, -- 2.20.1