From 5c88087be59c9ee4690095a0692b261335d68e07 Mon Sep 17 00:00:00 2001 From: claudio Date: Tue, 1 Nov 2022 13:35:09 +0000 Subject: [PATCH] Use unsigned long long to store integer value. At least that can always be printed with %llu unlike uint64_t. --- usr.sbin/bgpctl/ometric.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/bgpctl/ometric.c b/usr.sbin/bgpctl/ometric.c index 54b1bc6e137..aa600d6ef50 100644 --- a/usr.sbin/bgpctl/ometric.c +++ b/usr.sbin/bgpctl/ometric.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ometric.c,v 1.1 2022/10/17 12:01:19 claudio Exp $ */ +/* $OpenBSD: ometric.c,v 1.2 2022/11/01 13:35:09 claudio Exp $ */ /* * Copyright (c) 2022 Claudio Jeker @@ -48,8 +48,8 @@ struct ovalue { STAILQ_ENTRY(ovalue) entry; struct olabels *labels; union { - uint64_t i; - double f; + unsigned long long i; + double f; } value; enum ovalue_type valtype; }; -- 2.20.1