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

code cleanup and again a patch for checking commandlion parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarpluginrunner.c

    r5876 r5950  
    623623   g_verbose++; 
    624624  } else if ( !strcmp(k, "--server") ) { 
     625   ROAR_CKHAVEARGS(1); 
    625626   roar_libroar_set_server(argv[++i]); 
    626627 
     
    635636   cpi_touched++; 
    636637  } else if ( !strcmp(k, "--port") ) { 
     638   ROAR_CKHAVEARGS(1); 
    637639   cpi_port = atoi(argv[++i]); 
    638640   cpi_touched++; 
    639641  } else if ( !strcmp(k, "--bind") ) { 
     642   ROAR_CKHAVEARGS(1); 
    640643   cpi_host = argv[++i]; 
    641644   cpi_touched++; 
    642645  } else if ( !strcmp(k, "--proto") ) { 
     646   ROAR_CKHAVEARGS(1); 
    643647   cpi_proto = roar_str2proto(argv[++i]); 
    644648   if ( cpi_proto == -1 ) { 
     
    653657   cpi_touched = 0; 
    654658  } else if ( !strcmp(k, "--client-fh") ) { 
     659   ROAR_CKHAVEARGS(1); 
    655660   if ( add_cpi_client(cpi_proto, atoi(argv[++i])) == -1 ) { 
    656661    fprintf(stderr, "Can not add CPI client: %s\n", roar_error2str(roar_error)); 
     
    671676 
    672677  } else if ( !strcmp(k, "--appname") ) { 
     678   ROAR_CKHAVEARGS(1); 
    673679   appname = argv[++i]; 
    674680   _clear_para(); 
    675681  } else if ( !strcmp(k, "--abiversion") ) { 
     682   ROAR_CKHAVEARGS(1); 
    676683   abiversion = argv[++i]; 
    677684   _clear_para(); 
    678685  } else if ( !strcmp(k, "--args") ) { 
     686   ROAR_CKHAVEARGS(1); 
    679687   pluginargs = argv[++i]; 
    680688   _clear_para(); 
Note: See TracChangeset for help on using the changeset viewer.