diff options
author | Linus Nordberg <linus@nordberg.se> | 2013-01-24 08:32:23 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2013-01-24 08:32:23 +0100 |
commit | fc22159b81c6f9c0649e03ac5be4ccbb7f6520cc (patch) | |
tree | 570aee9c709bb493a05b490f3f8f57b85e149ed7 /lib/conn.c | |
parent | d41b3758b160530490e124d84c32c1721da8d66b (diff) |
Rename rs_packet_flags members.
Uppercase to make them appear as the constants they are, as opposed to
variables.
Remove 'flag' suffix, typically used for variables.
Spell out HEADER.
Diffstat (limited to 'lib/conn.c')
-rw-r--r-- | lib/conn.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -207,7 +207,7 @@ _rcb (struct rs_packet *packet, void *user_data) assert (pkt); assert (pkt->conn); - pkt->flags |= rs_packet_received_flag; + pkt->flags |= RS_PACKET_RECEIVED; if (pkt->conn->bev) bufferevent_disable (pkt->conn->bev, EV_WRITE|EV_READ); else @@ -234,7 +234,7 @@ rs_conn_receive_packet (struct rs_connection *conn, conn->callbacks.received_cb = _rcb; conn->user_data = pkt; - pkt->flags &= ~rs_packet_received_flag; + pkt->flags &= ~RS_PACKET_RECEIVED; if (conn->bev) /* TCP. */ { @@ -267,7 +267,7 @@ rs_conn_receive_packet (struct rs_connection *conn, evutil_gai_strerror (err)); rs_debug (("%s: event loop done\n", __func__)); - if ((pkt->flags & rs_packet_received_flag) == 0 + if ((pkt->flags & RS_PACKET_RECEIVED) == 0 || (req_msg && packet_verify_response (pkt->conn, pkt, req_msg) != RSE_OK)) { |