Ignore:
Timestamp:
Dec 7, 2008, 7:26:17 PM (16 years ago)
Author:
katerina
Message:

Fix compile failures on RHEL3 (ticket #130) and FreeBSD7 amd64 (ticket #131).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_userfiles.c

    r149 r203  
    215215     * So, compare longest strings first */
    216216    if( s == NULL ) /* The default */          new->level = default_level;
    217     else if ( strstr(s, "attributes")!= NULL ) new->level = SH_LEVEL_ATTRIBUTES;
    218     else if ( strstr(s, "allignore") != NULL ) new->level = SH_LEVEL_ALLIGNORE;
    219     else if ( strstr(s, "noignore")  != NULL ) new->level = SH_LEVEL_NOIGNORE;
    220     else if ( strstr(s, "logfiles")  != NULL ) new->level = SH_LEVEL_LOGFILES;
    221     else if ( strstr(s, "readonly")  != NULL ) new->level = SH_LEVEL_READONLY;
    222     else if ( strstr(s, "loggrow")   != NULL ) new->level = SH_LEVEL_LOGGROW;
    223     else if ( strstr(s, "user0")     != NULL ) new->level = SH_LEVEL_USER0;
    224     else if ( strstr(s, "user1")     != NULL ) new->level = SH_LEVEL_USER1;
    225     else if ( strstr(s, "user2")     != NULL ) new->level = SH_LEVEL_USER2;
    226     else if ( strstr(s, "user3")     != NULL ) new->level = SH_LEVEL_USER3;
    227     else if ( strstr(s, "user4")     != NULL ) new->level = SH_LEVEL_USER4;
    228     else if ( strstr(s, "prelink")   != NULL ) new->level = SH_LEVEL_PRELINK;
     217    else if ( strstr(s, _("attributes"))!= NULL ) new->level = SH_LEVEL_ATTRIBUTES;
     218    else if ( strstr(s, _("allignore")) != NULL ) new->level = SH_LEVEL_ALLIGNORE;
     219    else if ( strstr(s, _("noignore"))  != NULL ) new->level = SH_LEVEL_NOIGNORE;
     220    else if ( strstr(s, _("logfiles"))  != NULL ) new->level = SH_LEVEL_LOGFILES;
     221    else if ( strstr(s, _("readonly"))  != NULL ) new->level = SH_LEVEL_READONLY;
     222    else if ( strstr(s, _("loggrow"))   != NULL ) new->level = SH_LEVEL_LOGGROW;
     223    else if ( strstr(s, _("user0"))     != NULL ) new->level = SH_LEVEL_USER0;
     224    else if ( strstr(s, _("user1"))     != NULL ) new->level = SH_LEVEL_USER1;
     225    else if ( strstr(s, _("user2"))     != NULL ) new->level = SH_LEVEL_USER2;
     226    else if ( strstr(s, _("user3"))     != NULL ) new->level = SH_LEVEL_USER3;
     227    else if ( strstr(s, _("user4"))     != NULL ) new->level = SH_LEVEL_USER4;
     228    else if ( strstr(s, _("prelink"))   != NULL ) new->level = SH_LEVEL_PRELINK;
    229229    else            /* The default */          new->level = default_level;
    230230
Note: See TracChangeset for help on using the changeset viewer.