Changeset 447:69862ec0bf8a in roaraudio


Ignore:
Timestamp:
08/12/08 01:40:13 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

-p implys -t and -t sets only hostname if it is not of type INET

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/roard.c

    r446 r447  
    193193 
    194194  } else if ( strcmp(k, "-p") == 0 || strcmp(k, "--port") == 0 ) { 
     195   // This is only usefull in INET not UNIX mode. 
     196   if ( *server == '/' ) 
     197    server = ROAR_DEFAULT_HOST; 
     198 
    195199   errno = 0; 
    196200   if ( (port = atoi(argv[++i])) < 1 ) { 
     
    207211   server = argv[++i]; 
    208212  } else if ( strcmp(k, "-t") == 0 ) { 
    209    server = ROAR_DEFAULT_HOST; 
     213   if ( *server == '/' ) 
     214    server = ROAR_DEFAULT_HOST; 
    210215  } else if ( strcmp(k, "-u") == 0 ) { 
    211216   // ignore this case as it is the default behavor. 
Note: See TracChangeset for help on using the changeset viewer.