|
version 1.1, 2012/02/21 23:32:47
|
version 1.1.1.2, 2021/03/17 00:39:23
|
|
Line 25
|
Line 25
|
| * INTERNAL FUNCTIONS |
* INTERNAL FUNCTIONS |
| */ |
*/ |
| |
|
| static void Do(int which, int ac, char *av[], Options o, ConfInfo list); | static void Do(int which, int ac, const char *const av[], Options o, ConfInfo list); |
| static int FindOpt(ConfInfo list, const char *name); |
static int FindOpt(ConfInfo list, const char *name); |
| |
|
| /* |
/* |
|
Line 62 OptStat(Context ctx, Options opt, ConfInfo list)
|
Line 62 OptStat(Context ctx, Options opt, ConfInfo list)
|
| */ |
*/ |
| |
|
| void |
void |
| NoCommand(int ac, char *av[], Options opt, ConfInfo list) | NoCommand(int ac, const char *const av[], Options opt, ConfInfo list) |
| { |
{ |
| Do(DISABLE, ac, av, opt, list); |
Do(DISABLE, ac, av, opt, list); |
| Do(DENY | NO_SCOLD, ac, av, opt, list); |
Do(DENY | NO_SCOLD, ac, av, opt, list); |
|
Line 73 NoCommand(int ac, char *av[], Options opt, ConfInfo li
|
Line 73 NoCommand(int ac, char *av[], Options opt, ConfInfo li
|
| */ |
*/ |
| |
|
| void |
void |
| YesCommand(int ac, char *av[], Options opt, ConfInfo list) | YesCommand(int ac, const char *const av[], Options opt, ConfInfo list) |
| { |
{ |
| Do(ENABLE, ac, av, opt, list); |
Do(ENABLE, ac, av, opt, list); |
| Do(ACCEPT | NO_SCOLD, ac, av, opt, list); |
Do(ACCEPT | NO_SCOLD, ac, av, opt, list); |
|
Line 84 YesCommand(int ac, char *av[], Options opt, ConfInfo l
|
Line 84 YesCommand(int ac, char *av[], Options opt, ConfInfo l
|
| */ |
*/ |
| |
|
| void |
void |
| EnableCommand(int ac, char *av[], Options opt, ConfInfo list) | EnableCommand(int ac, const char *const av[], Options opt, ConfInfo list) |
| { |
{ |
| Do(ENABLE, ac, av, opt, list); |
Do(ENABLE, ac, av, opt, list); |
| } |
} |
|
Line 94 EnableCommand(int ac, char *av[], Options opt, ConfInf
|
Line 94 EnableCommand(int ac, char *av[], Options opt, ConfInf
|
| */ |
*/ |
| |
|
| void |
void |
| DisableCommand(int ac, char *av[], Options opt, ConfInfo list) | DisableCommand(int ac, const char *const av[], Options opt, ConfInfo list) |
| { |
{ |
| Do(DISABLE, ac, av, opt, list); |
Do(DISABLE, ac, av, opt, list); |
| } |
} |
|
Line 104 DisableCommand(int ac, char *av[], Options opt, ConfIn
|
Line 104 DisableCommand(int ac, char *av[], Options opt, ConfIn
|
| */ |
*/ |
| |
|
| void |
void |
| AcceptCommand(int ac, char *av[], Options opt, ConfInfo list) | AcceptCommand(int ac, const char *const av[], Options opt, ConfInfo list) |
| { |
{ |
| Do(ACCEPT, ac, av, opt, list); |
Do(ACCEPT, ac, av, opt, list); |
| } |
} |
|
Line 114 AcceptCommand(int ac, char *av[], Options opt, ConfInf
|
Line 114 AcceptCommand(int ac, char *av[], Options opt, ConfInf
|
| */ |
*/ |
| |
|
| void |
void |
| DenyCommand(int ac, char *av[], Options opt, ConfInfo list) | DenyCommand(int ac, const char *const av[], Options opt, ConfInfo list) |
| { |
{ |
| Do(DENY, ac, av, opt, list); |
Do(DENY, ac, av, opt, list); |
| } |
} |
|
Line 124 DenyCommand(int ac, char *av[], Options opt, ConfInfo
|
Line 124 DenyCommand(int ac, char *av[], Options opt, ConfInfo
|
| */ |
*/ |
| |
|
| static void |
static void |
| Do(int which, int ac, char *av[], Options opt, ConfInfo list) | Do(int which, int ac, const char *const av[], Options opt, ConfInfo list) |
| { |
{ |
| const int scold = !(which & NO_SCOLD); |
const int scold = !(which & NO_SCOLD); |
| |
|