Changeset 5945:513aedefab60 in roaraudio for roarclients/roarclientpass.c


Ignore:
Timestamp:
10/15/13 13:33:26 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Updated checks on commandlion parameters (Closes: DEB#716264, DEB#716251, DEB#716245, DEB#716240)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarclientpass.c

    r5823 r5945  
    152152 
    153153  if ( !strcmp(k, "--server") || !strcmp(k, "-s") ) { 
     154   ROAR_CKHAVEARGS(1); 
    154155   server = argv[++i]; 
    155156  } else if ( !strcmp(k, "--stdin") ) { 
     
    162163   cflags |= F_STDIN|F_STDOUT; 
    163164  } else if ( !strcmp(k, "--client-fh") ) { 
     165   ROAR_CKHAVEARGS(1); 
    164166   clientfh = atoi(argv[++i]); 
    165167  } else if ( !strcmp(k, "--proto") ) { 
     168   ROAR_CKHAVEARGS(1); 
    166169   proto = roar_str2proto(argv[++i]); 
    167170  } else if ( !strcmp(k, "--byteorder") ) { 
     171   ROAR_CKHAVEARGS(1); 
    168172   byteorder = roar_str2byteorder(argv[++i]); 
    169173  } else if ( !strcmp(k, "--listen") ) { 
    170174   flags |= ROAR_CLIENTPASS_FLAG_LISTEN; 
    171175  } else if ( !strcmp(k, "--command") ) { 
     176   ROAR_CKHAVEARGS(1); 
    172177   k = argv[++i]; 
    173178   if ( !strcasecmp(k, "passfh") ) { 
     
    180185   } 
    181186  } else if ( !strcmp(k, "--mode") ) { 
     187   ROAR_CKHAVEARGS(1); 
    182188   k = argv[++i]; 
    183189   if ( !strcasecmp(k, "none") ) { 
     
    195201   } 
    196202  } else if ( !strcmp(k, "--bind") ) { 
     203   ROAR_CKHAVEARGS(1); 
    197204   host = argv[++i]; 
    198205  } else if ( !strcmp(k, "--port") ) { 
     206   ROAR_CKHAVEARGS(1); 
    199207   port = atoi(argv[++i]); 
    200208  } else if ( !strcmp(k, "--help") || !strcmp(k, "-h") ) { 
Note: See TracChangeset for help on using the changeset viewer.