Skip to content

Commit 2b0b6a4

Browse files
committed
Replace single-bit signed integers with unsigned integers
Single bit signed integers contain a single sign-byte and zero value bytes according to the C99 standard. This is not inteded here.
1 parent 15e1e3f commit 2b0b6a4

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

‎src/http.h‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -399,17 +399,17 @@ struct http_client {
399399
int hc_refcnt; /* callback protection - outside hc_mutex */
400400
int hc_redirects;
401401
int hc_result;
402-
int hc_shutdown:1;
403-
int hc_sending:1;
404-
int hc_einprogress:1;
405-
int hc_reconnected:1;
406-
int hc_keepalive:1;
407-
int hc_in_data:1;
408-
int hc_in_rtp_data:1;
409-
int hc_chunked:1;
410-
int hc_chunk_trails:1;
411-
int hc_handle_location:1; /* handle the redirection (location) requests */
412-
int hc_pause:1;
402+
unsigned int hc_shutdown:1;
403+
unsigned int hc_sending:1;
404+
unsigned int hc_einprogress:1;
405+
unsigned int hc_reconnected:1;
406+
unsigned int hc_keepalive:1;
407+
unsigned int hc_in_data:1;
408+
unsigned int hc_in_rtp_data:1;
409+
unsigned int hc_chunked:1;
410+
unsigned int hc_chunk_trails:1;
411+
unsigned int hc_handle_location:1; /* handle the redirection (location) requests */
412+
unsigned int hc_pause:1;
413413

414414
http_client_wcmd_t *hc_wcmd;
415415
TAILQ_HEAD(,http_client_wcmd) hc_wqueue;
@@ -425,8 +425,8 @@ struct http_client {
425425
int hc_rtp_tcp;
426426
int hc_rtcp_tcp;
427427
int hc_rtcp_server_port;
428-
int hc_rtp_multicast:1;
429-
int hc_rtp_avpf:1;
428+
unsigned int hc_rtp_multicast:1;
429+
unsigned int hc_rtp_avpf:1;
430430
long hc_rtsp_stream_id;
431431
int hc_rtp_timeout;
432432
char *hc_rtsp_user;

0 commit comments

Comments
 (0)