Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-ospf.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 13 Feb 2002 23:23:32 -0600 (CST)
guy         2002/02/13 23:23:32 CST

  Modified files:
    .                    packet-ospf.c 
  Log:
  "tvb_ieee_to_long()" returns a "long", not a "long long", so you can't
  print it with "%lld".
  
  In any case, not all platforms on which Ethereal can be built support
  64-bit integral data types, and, even on those that do, not all of them
  support "%ll[doux]" as the format for printing those types, so do the
  arithmetic in floating point by multiplying the bytes/s values by 8.0,
  and print with "%.0f" instead.
  
  Revision  Changes    Path
  1.57      +5 -5      ethereal/packet-ospf.c