[PATCH] osmocon: correct parsing of -m

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/baseband-devel@lists.osmocom.org/.

Peter Stuge peter at stuge.se
Wed Dec 14 07:33:58 UTC 2011


Sylvain Munaut wrote:
> > That's only certain if one enum value is defined to >= 0, and no
> > later enum is defined to < 0. If no enum value is defined at all,
> > then they may very well be negative.
> 
> Oh, I actually mis-read this in my last answer.
> 
> I'm pretty sure that the first value defaults to 0 if not forced to
> another value.

I think not neccessarily so. If there is no specified value for any
enum value then IIRC they are all undefined, and could thus also be
negative. Bad.


//Peter




More information about the baseband-devel mailing list