diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-11-01 13:35:10 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-11-01 13:35:10 +0000 |
commit | 0802f06cc59197611662bcec2ffaaa94d12465b9 (patch) | |
tree | 2e9510ac82eb17b3924740061d116672a376699b /usr.sbin/bgpctl | |
parent | c6657493b1c127c7447312b48109e8b5443d9713 (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.c | 6 |
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; }; |