Ignore:
Timestamp:
Oct 30, 2006, 12:03:44 AM (18 years ago)
Author:
rainer
Message:

Update trunk to samhain 2.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_userfiles.c

    r27 r68  
    115115}
    116116 
    117 int sh_userfiles_set_uid (char * str)
     117int sh_userfiles_set_uid (const char * str)
    118118{
    119119  char * end;
    120   char * p = str;
     120  const  char * p = str;
    121121  unsigned long lower;
    122122  unsigned long upper = 0;
     
    183183 * directory that should be checked. */
    184184
    185 int sh_userfiles_add_file(char *c) {
     185int sh_userfiles_add_file(const char *c) {
    186186    struct userfileslist *new;
    187187    char *s, *orig;
     
    232232}
    233233
    234 /* Decide if we're active.  1 means yes, all else means no */
    235 
    236 int sh_userfiles_set_active(char *c) {
     234/* Decide if we're active.
     235 */
     236int sh_userfiles_set_active(const char *c) {
    237237    int value;
    238238   
    239239    SL_ENTER(_("sh_userfiles_set_active"));
    240 
    241240    value = sh_util_flagval(c, &ShUserfilesActive);
    242 
    243     /*
    244     if( value == 1 ) {
    245         ShUserfilesActive = S_TRUE;
    246     } else {
    247         ShUserfilesActive = S_FALSE;
    248     }
    249     */
    250 
    251241    SL_RETURN((value), _("sh_userfiles_set_active"));
    252242}
Note: See TracChangeset for help on using the changeset viewer.