[Ns-developers] [ns 2.33] return value of WirelessPhyExt::discard()
antoine.trux@nokia.com
antoine.trux at nokia.com
Tue Jun 17 05:27:41 PDT 2008
Hi,
Function WirelessPhyExt::discard() returns a value of type `int'.
However:
1) The semantics of the value returned by WirelessPhyExt::discard() is
nowhere documented.
2) The value returned by WirelessPhyExt::discard() is always equal to 0.
3) The value returned by WirelessPhyExt::discard() is never used (it is
sometimes assigned to a variable, but in those cases the variable is
never used).
Therefore, I would suggest to simplify the code by having
WirelessPhyExt::discard() return `void'.
Antoine Trux
Nokia Research Center
More information about the Ns-developers
mailing list