[prev in list] [next in list] [prev in thread] [next in thread]
List: bind-workers
Subject: Re: Command line parsing
From: taleAnominum.com (Eavid D Mawrence)
Date: 2001-03-02 2:39:10
[Download RAW message or body]
Ken Porter writes:
> default:
> ns_main_earlyfatal("parsing options returned %d", ch);
>
> My question is under what condition will this message get issued?
Should be never. It is just defensive programming to have a default
label for switches. This guards against circumstances like someone
changing isc_commandline_parse() to return some other special
character that named was not similarly changed to recognize.
(Extremely unlikely, yes.) Also, some compilers/linters will warn if
a default case is not present.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic