diff options
author | Bill Meier <wmeier@newsguy.com> | 2009-04-24 12:16:01 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2009-04-24 12:16:01 +0000 |
commit | 72ef03e60a8ee4ac5768567afe7ad0437fd6ce93 (patch) | |
tree | e8832339a7818f0f8cb37e67c84902703884d5d7 /wiretap/netxray.c | |
parent | ed948cc8f71ba810c115c779b854352dca136757 (diff) | |
download | wireshark-72ef03e60a8ee4ac5768567afe7ad0437fd6ce93.tar.gz wireshark-72ef03e60a8ee4ac5768567afe7ad0437fd6ce93.tar.bz2 wireshark-72ef03e60a8ee4ac5768567afe7ad0437fd6ce93.zip |
[Trivial] Constify a few things
svn path=/trunk/; revision=28144
Diffstat (limited to 'wiretap/netxray.c')
-rw-r--r-- | wiretap/netxray.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/wiretap/netxray.c b/wiretap/netxray.c index 7a000b16f7..4518701e59 100644 --- a/wiretap/netxray.c +++ b/wiretap/netxray.c @@ -194,7 +194,7 @@ struct netxray_hdr { * CAPTYPE_ATM? If so, what should the table for ATM captures with * that captype be? */ -static double TpS[] = { 1e6, 1193000.0, 1193182.0 }; +static const double TpS[] = { 1e6, 1193000.0, 1193182.0 }; #define NUM_NETXRAY_TIMEUNITS (sizeof TpS / sizeof TpS[0]) /* @@ -219,7 +219,7 @@ static double TpS[] = { 1e6, 1193000.0, 1193182.0 }; * (Based upon captures reviewed realtick does not contain the * correct TpS values for the 'gigpod' captype). */ -static double TpS_gigpod[] = { 1e9, 0.0, 31250000.0 }; +static const double TpS_gigpod[] = { 1e9, 0.0, 31250000.0 }; #define NUM_NETXRAY_TIMEUNITS_GIGPOD (sizeof TpS_gigpod / sizeof TpS_gigpod[0]) /* @@ -227,7 +227,7 @@ static double TpS_gigpod[] = { 1e9, 0.0, 31250000.0 }; * (Based upon captures reviewed realtick does not contain the * correct TpS values for the 'otherpod' captype). */ -static double TpS_otherpod[] = { 1e6, 0.0, 1250000.0 }; +static const double TpS_otherpod[] = { 1e6, 0.0, 1250000.0 }; #define NUM_NETXRAY_TIMEUNITS_OTHERPOD (sizeof TpS_otherpod / sizeof TpS_otherpod[0]) /* @@ -235,7 +235,7 @@ static double TpS_otherpod[] = { 1e6, 0.0, 1250000.0 }; * (Based upon captures reviewed realtick does not contain the * correct TpS values for the 'otherpod2' captype). */ -static double TpS_otherpod2[] = { 1e6, 0.0, 0.0 }; +static const double TpS_otherpod2[] = { 1e6, 0.0, 0.0 }; #define NUM_NETXRAY_TIMEUNITS_OTHERPOD2 (sizeof TpS_otherpod2 / sizeof TpS_otherpod2[0]) /* @@ -243,7 +243,7 @@ static double TpS_otherpod2[] = { 1e6, 0.0, 0.0 }; * (Based upon captures reviewed realtick does not contain the * correct TpS values for the 'gigpod2' captype). */ -static double TpS_gigpod2[] = { 1e9, 0.0, 20000000.0 }; +static const double TpS_gigpod2[] = { 1e9, 0.0, 20000000.0 }; #define NUM_NETXRAY_TIMEUNITS_GIGPOD2 (sizeof TpS_gigpod2 / sizeof TpS_gigpod2[0]) /* Version number strings. */ |