Changeset 2620:d84d2de62245 in roaraudio


Ignore:
Timestamp:
09/11/09 21:41:17 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added native and network byteorder specal info to byteorder info of players

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarctl.c

    r2617 r2620  
    191191 int h; 
    192192 int id[ROAR_CLIENTS_MAX]; 
     193 char tmp[80]; 
    193194 struct roar_client c; 
    194195#ifdef _POSIX_USERS 
     
    225226 
    226227  if ( g_verbose && c.byteorder != ROAR_BYTEORDER_UNKNOWN ) { 
    227    printf("Player Byteorder      : %s\n", roar_byteorder2str(c.byteorder)); 
     228   if ( c.byteorder == ROAR_BYTEORDER_NETWORK ) { 
     229    strcpy(tmp, " (network byteorder"); 
     230   } else { 
     231    *tmp = 0; 
     232   } 
     233 
     234   if ( c.byteorder == ROAR_BYTEORDER_NATIVE ) { 
     235    if ( *tmp ) { 
     236     strcat(tmp, ", native"); 
     237    } else { 
     238     strcpy(tmp, " (native"); 
     239    } 
     240   } 
     241 
     242   if ( *tmp ) 
     243    strcat(tmp, ")"); 
     244 
     245   printf("Player Byteorder      : %s%s\n", roar_byteorder2str(c.byteorder), tmp); 
    228246  } 
    229247 
Note: See TracChangeset for help on using the changeset viewer.