summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpctl
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2022-11-01 13:35:10 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2022-11-01 13:35:10 +0000
commit0802f06cc59197611662bcec2ffaaa94d12465b9 (patch)
tree2e9510ac82eb17b3924740061d116672a376699b /usr.sbin/bgpctl
parentc6657493b1c127c7447312b48109e8b5443d9713 (diff)
Use unsigned long long to store integer value. At least that can always
be printed with %llu unlike uint64_t.
Diffstat (limited to 'usr.sbin/bgpctl')
-rw-r--r--usr.sbin/bgpctl/ometric.c6
1 files 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 <claudio@openbsd.org>
@@ -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;
};