Use unsigned long long to store integer value. At least that can always
authorclaudio <claudio@openbsd.org>
Tue, 1 Nov 2022 13:35:09 +0000 (13:35 +0000)
committerclaudio <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

index 54b1bc6..aa600d6 100644 (file)
@@ -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;
 };