Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/dist/ipf Put the (long long) and (unsigned long long) casts ...



details:   https://anonhg.NetBSD.org/src/rev/214fa8e02e14
branches:  trunk
changeset: 485756:214fa8e02e14
user:      veego <veego%NetBSD.org@localhost>
date:      Thu May 04 19:55:44 2000 +0000

description:
Put the (long long) and (unsigned long long) casts back.

diffstat:

 dist/ipf/fils.c |  16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diffs (56 lines):

diff -r 23039fd9e12d -r 214fa8e02e14 dist/ipf/fils.c
--- a/dist/ipf/fils.c   Thu May 04 19:41:44 2000 +0000
+++ b/dist/ipf/fils.c   Thu May 04 19:55:44 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fils.c,v 1.4 2000/05/03 11:40:16 veego Exp $   */
+/*     $NetBSD: fils.c,v 1.5 2000/05/04 19:55:44 veego Exp $   */
 
 /*
  * Copyright (C) 1993-2000 by Darren Reed.
@@ -451,13 +451,13 @@
                        fp->fr_flags |= FR_OUTQUE;
                if (opts & (OPT_HITS|OPT_VERBOSE))
 #ifdef USE_QUAD_T
-                       PRINTF("%qd ", fp->fr_hits);
+                       PRINTF("%qd ", (long long)fp->fr_hits);
 #else
                        PRINTF("%ld ", fp->fr_hits);
 #endif
                if (opts & (OPT_ACCNT|OPT_VERBOSE))
 #ifdef USE_QUAD_T
-                       PRINTF("%qd ", fp->fr_bytes);
+                       PRINTF("%qd ", (long long)fp->fr_bytes);
 #else
                        PRINTF("%ld ", fp->fr_bytes);
 #endif
@@ -559,7 +559,8 @@
                        ips.is_age, ips.is_pass, ips.is_p,
                        ips.is_state[0], ips.is_state[1]);
 #ifdef USE_QUAD_T
-               PRINTF("\tpkts %qd bytes %qd", ips.is_pkts, ips.is_bytes);
+               PRINTF("\tpkts %qd bytes %qd",
+                       (long long)ips.is_pkts, (long long)ips.is_bytes);
 #else
                PRINTF("\tpkts %ld bytes %ld", ips.is_pkts, ips.is_bytes);
 #endif
@@ -902,7 +903,8 @@
                        printw(" %4s", str1);
                                /* print #pkt/#bytes */
 #ifdef USE_QUAD_T
-                       printw(" %7qu %9qu", tp->st_pkts, tp->st_bytes);
+                       printw(" %7qu %9qu", (unsigned long long)tp->st_pkts,
+                               (unsigned long long)tp->st_bytes);
 #else
                        printw(" %7ld %9ld", tp->st_pkts, tp->st_bytes);
 #endif
@@ -998,8 +1000,8 @@
        frauthent_t *frap, fra;
 
 #ifdef USE_QUAD_T
-       printf("Authorisation hits: %qd\tmisses %qd\n", asp->fas_hits,
-               asp->fas_miss);
+       printf("Authorisation hits: %qd\tmisses %qd\n",
+               (long long)asp->fas_hits, (long long)asp->fas_miss);
 #else
        printf("Authorisation hits: %ld\tmisses %ld\n", asp->fas_hits,
                asp->fas_miss);



Home | Main Index | Thread Index | Old Index