/[anubis]/anubis/src/rc.c
ViewVC logotype

Diff of /anubis/src/rc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.27 by polak, Sun Jul 20 10:42:05 2003 UTC revision 1.28 by polak, Mon Jul 21 10:42:41 2003 UTC
# Line 28  Line 28 
28    
29  #define setbool(a, b, c) \  #define setbool(a, b, c) \
30     do {\     do {\
31          if (strcmp("yes", a) == 0) \          if (strcasecmp("yes", a) == 0) \
32                  (b) |= (c); \                  (b) |= (c); \
33          else if (strcmp("no", a) == 0) \          else if (strcasecmp("no", a) == 0) \
34                  (b) &= ~(c); \                  (b) &= ~(c); \
35          else \          else \
36                  return RC_KW_ERROR; \                  return RC_KW_ERROR; \
# Line 231  control_parser(int method, int key, LIST Line 231  control_parser(int method, int key, LIST
231                  break;                  break;
232                                    
233          case KW_TERMLEVEL:                    case KW_TERMLEVEL:          
234                  if (strcmp("silent", arg) == 0)                  if (strcasecmp("silent", arg) == 0)
235                          options.termlevel = SILENT;                          options.termlevel = SILENT;
236                  else if (strcmp("normal", arg) == 0)                  else if (strcasecmp("normal", arg) == 0)
237                          options.termlevel = NORMAL;                          options.termlevel = NORMAL;
238                  else if (strcmp("verbose", arg) == 0)                  else if (strcasecmp("verbose", arg) == 0)
239                          options.termlevel = VERBOSE;                          options.termlevel = VERBOSE;
240                  else if (strcmp("debug", arg) == 0)                  else if (strcasecmp("debug", arg) == 0)
241                          options.termlevel = DEBUG;                          options.termlevel = DEBUG;
242                  else                  else
243                          return RC_KW_ERROR;                          return RC_KW_ERROR;
# Line 262  control_parser(int method, int key, LIST Line 262  control_parser(int method, int key, LIST
262                  break;                  break;
263                                    
264          case KW_LOGLEVEL:          case KW_LOGLEVEL:
265                  if (strcmp("none", arg) == 0)                  if (strcasecmp("none", arg) == 0)
266                          options.uloglevel = NONE;                          options.uloglevel = NONE;
267                  else if (strcmp("all", arg) == 0)                  else if (strcasecmp("all", arg) == 0)
268                          options.uloglevel = ALL;                          options.uloglevel = ALL;
269                  else if (strcmp("fails", arg) == 0)                  else if (strcasecmp("fails", arg) == 0)
270                          options.uloglevel = FAILS;                          options.uloglevel = FAILS;
271                  else                  else
272                          return RC_KW_ERROR;                          return RC_KW_ERROR;
# Line 489  rule_parser(int method, int key, LIST *a Line 489  rule_parser(int method, int key, LIST *a
489                    
490          switch (key) {          switch (key) {
491          case KW_SIGNATURE_FILE_APPEND:          case KW_SIGNATURE_FILE_APPEND:
492                  message_append_signature_file(msg, arg);                  if (strcasecmp("no", arg))
493                            message_append_signature_file(msg);
494                  break;                  break;
495                                    
496          case KW_BODY_APPEND:          case KW_BODY_APPEND:

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26