Changeset 2614:11dce7d724c4 in roaraudio for roard/clients.c
- Timestamp:
- 09/11/09 15:57:24 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/clients.c
r2608 r2614 61 61 *n->host = 0; 62 62 63 n->proto = ROAR_PROTO_ROARAUDIO; 63 n->proto = ROAR_PROTO_ROARAUDIO; 64 n->byteorder = ROAR_BYTEORDER_NETWORK; 64 65 65 66 n->acl = NULL; … … 167 168 168 169 int clients_set_proto (int id, int proto) { 169 if ( g_clients[id] == NULL ) 170 return -1; 171 172 g_clients[id]->proto = proto; 170 int byteorder = ROAR_BYTEORDER_UNKNOWN; 171 172 if ( g_clients[id] == NULL ) 173 return -1; 174 175 switch (proto) { 176 case ROAR_PROTO_ROARAUDIO: 177 byteorder = ROAR_BYTEORDER_NETWORK; 178 break; 179 } 180 181 g_clients[id]->proto = proto; 182 g_clients[id]->byteorder = byteorder; 173 183 174 184 return 0;
Note: See TracChangeset
for help on using the changeset viewer.