Changeset 5146:716400712348 in roaraudio for roard/roard.c


Ignore:
Timestamp:
10/15/11 12:48:07 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Moved error frame handling into proto functions (pr0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/roard.c

    r5103 r5146  
    217217 printf("\nAuth Options:\n\n"); 
    218218 printf( 
    219         " --guest-acclev ACCLEV - Sets the access level for guest access to ACCLEV\n" 
     219        " --guest-acclev ACCLEV - Sets the access level for guest access to ACCLEV,\n" 
     220        "                         Use \"none\" to disable guest access.\n" 
    220221        " --trust-acclev ACCLEV - Sets the access level for trust-authed\n" 
    221         "                         connections to ACCLEV\n" 
     222        "                         connections to ACCLEV. Use \"none\" to disable trust auth.\n" 
    222223        " --trust-root          - Trust root user\n" 
    223224        " --no-trust-root       - Don't trust root user\n" 
     
    16791680   _CKHAVEARGS(1); 
    16801681   none_acclev = clients_str2acclev(argv[++i]); 
     1682   if ( none_acclev == -1 ) { 
     1683    ROAR_ERR("Invalid access level: %s", argv[i]); 
     1684    return 1; 
     1685   } 
    16811686  } else if ( strcmp(k, "--trust-acclev") == 0 ) { 
    16821687   _CKHAVEARGS(1); 
    16831688   trust_acclev = clients_str2acclev(argv[++i]); 
     1689   if ( trust_acclev == -1 ) { 
     1690    ROAR_ERR("Invalid access level: %s", argv[i]); 
     1691    return 1; 
     1692   } 
    16841693  } else if ( strcmp(k, "--trust-root") == 0 ) { 
    16851694   trust_root = 1; 
Note: See TracChangeset for help on using the changeset viewer.