make sure to terminate vararg list correctly
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Tue, 16 Oct 2007 10:54:50 +0200
changeset 1965 6d06596d8bb8
parent 1964 041240a915f8
child 1966 8d4f27f7ee0e
make sure to terminate vararg list correctly
src/devices/wifi/wifi-default-parameters.cc
--- a/src/devices/wifi/wifi-default-parameters.cc	Mon Oct 15 16:47:53 2007 +0200
+++ b/src/devices/wifi/wifi-default-parameters.cc	Tue Oct 16 10:54:50 2007 +0200
@@ -84,7 +84,8 @@
  MODE_24MB, "24mb",
  MODE_36MB, "36mb",
  MODE_48MB, "48mb",
- MODE_54MB, "54mb");
+ MODE_54MB, "54mb",
+ 0, (void *)0);
 static EnumDefaultValue<enum PhyModeParameter> g_ctlMode
 ("WifiConstantCtlRate", 
  "The rate to use for control transmissions if using the ConstantRate rate control algorithm.",
@@ -95,7 +96,8 @@
  MODE_24MB, "24mb",
  MODE_36MB, "36mb",
  MODE_48MB, "48mb",
- MODE_54MB, "54mb");
+ MODE_54MB, "54mb",
+ 0, (void *)0);
 static NumericDefaultValue<double> g_idealBer
 ("WifiIdealRateControlBerThreshold",
  "The maximum Bit Error Rate acceptable at any transmission mode",