artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c812f9c
)
Use unsigned long long to store integer value. At least that can always
author
claudio
<claudio@openbsd.org>
Tue, 1 Nov 2022 13:35:09 +0000
(13:35 +0000)
committer
claudio
<claudio@openbsd.org>
Tue, 1 Nov 2022 13:35:09 +0000
(13:35 +0000)
be printed with %llu unlike uint64_t.
usr.sbin/bgpctl/ometric.c
patch
|
blob
|
history
diff --git
a/usr.sbin/bgpctl/ometric.c
b/usr.sbin/bgpctl/ometric.c
index
54b1bc6
..
aa600d6
100644
(file)
--- 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:1
9 claudio Exp $ */
+/* $OpenBSD: ometric.c,v 1.
2 2022/11/01 13:35:0
9 claudio Exp $ */
/*
* Copyright (c) 2022 Claudio Jeker <claudio@openbsd.org>
@@
-48,8
+48,8
@@
struct ovalue {
STAILQ_ENTRY(ovalue) entry;
struct olabels *labels;
union {
- u
int64_t
i;
- double f;
+ u
nsigned long long
i;
+ double
f;
} value;
enum ovalue_type valtype;
};