Turn flags into bitfields to reduce struct sizes

This commit is contained in:
Julien BLACHE 2010-07-30 19:05:42 +02:00
parent 9cb4aaa921
commit 51f879cb32
2 changed files with 7 additions and 7 deletions

View File

@ -84,9 +84,9 @@ struct raop_session
struct evrtsp_connection *ctrl;
enum raop_session_state state;
int req_in_flight;
int req_has_auth;
int encrypt;
unsigned req_in_flight:1;
unsigned req_has_auth:1;
unsigned encrypt:1;
int cseq;
char *session;

View File

@ -28,11 +28,11 @@ struct raop_device
short v4_port;
short v6_port;
char selected;
char advertised;
char encrypt;
unsigned selected:1;
unsigned advertised:1;
unsigned encrypt:1;
char has_password;
unsigned has_password:1;
const char *password;
struct raop_session *session;