Changeset 20 for trunk/src/sh_error.c


Ignore:
Timestamp:
Feb 13, 2006, 11:54:42 PM (19 years ago)
Author:
rainer
Message:

Enable command-line parsing for prelude, and make prelude regression test safer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_error.c

    r11 r20  
    115115 *********************************************/
    116116
    117 int sh_error_verify (char * s)
     117int sh_error_verify (const char * s)
    118118{
    119119  char * foo;
     
    504504}
    505505
    506 int sh_error_set_level(char * str_in, int * facility)
     506int sh_error_set_level(const char * str_in, int * facility)
    507507{
    508508  register int  i, j, f = BAD;
    509509
    510510  int  old_facility;
    511   char * str_s = str_in;
     511  const char * str_s = str_in;
    512512
    513513  SL_ENTER(_("sh_error_set_level"));
     
    636636/* set severity for TCP export
    637637 */
    638 int sh_error_setexport(char *  str_s)
     638int sh_error_setexport(const char *  str_s)
    639639{
    640640  static int reject = 0;
     
    653653extern void dlog_set_active(int flag);
    654654
    655 int sh_error_setprint(char *  str_s)
     655int sh_error_setprint(const char *  str_s)
    656656{
    657657  static int reject = 0;
     
    676676/* set level for error logging
    677677 */
    678 int sh_error_setlog(char * str_s)
     678int sh_error_setlog(const char * str_s)
    679679{
    680680  static int reject = 0;
     
    691691/* set severity for syslog
    692692 */
    693 int sh_error_set_syslog (char * str_s)
     693int sh_error_set_syslog (const char * str_s)
    694694{
    695695  static int reject = 0;
     
    706706/* set severity for external
    707707 */
    708 int sh_error_set_external (char * str_s)
     708int sh_error_set_external (const char * str_s)
    709709{
    710710  static int reject = 0;
     
    722722/* set severity for database
    723723 */
    724 int sh_error_set_database (char * str_s)
     724int sh_error_set_database (const char * str_s)
    725725{
    726726  static int reject = 0;
     
    738738/* set severity for prelude
    739739 */
    740 int sh_error_set_prelude (char * str_s)
     740int sh_error_set_prelude (const char * str_s)
    741741{
    742742  static int reject = 0;
     
    784784/* set severity for mailing
    785785 */
    786 int sh_error_setseverity (char * str_s)
     786int sh_error_setseverity (const char * str_s)
    787787{
    788788  static int reject = 0;
Note: See TracChangeset for help on using the changeset viewer.