]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Replace single-bit signed integers with unsigned integers
authorFlole998 <Flole998@users.noreply.github.com>
Sun, 18 Feb 2024 23:20:30 +0000 (23:20 +0000)
committerFlole998 <Flole998@users.noreply.github.com>
Mon, 19 Feb 2024 09:44:57 +0000 (10:44 +0100)
Single bit signed integers contain a single sign-byte and zero value
bytes according to the C99 standard. This is not inteded here.

src/http.h

index 36bf7bd266493e91e9c2c52f3b3d9f114c3d535e..338c514a87beb7cc84b4f013122135b485bd5dbf 100644 (file)
@@ -399,17 +399,17 @@ struct http_client {
   int          hc_refcnt;       /* callback protection - outside hc_mutex */
   int          hc_redirects;
   int          hc_result;
-  int          hc_shutdown:1;
-  int          hc_sending:1;
-  int          hc_einprogress:1;
-  int          hc_reconnected:1;
-  int          hc_keepalive:1;
-  int          hc_in_data:1;
-  int          hc_in_rtp_data:1;
-  int          hc_chunked:1;
-  int          hc_chunk_trails:1;
-  int          hc_handle_location:1; /* handle the redirection (location) requests */
-  int          hc_pause:1;
+  unsigned int hc_shutdown:1;
+  unsigned int hc_sending:1;
+  unsigned int hc_einprogress:1;
+  unsigned int hc_reconnected:1;
+  unsigned int hc_keepalive:1;
+  unsigned int hc_in_data:1;
+  unsigned int hc_in_rtp_data:1;
+  unsigned int hc_chunked:1;
+  unsigned int hc_chunk_trails:1;
+  unsigned int hc_handle_location:1; /* handle the redirection (location) requests */
+  unsigned int hc_pause:1;
 
   http_client_wcmd_t            *hc_wcmd;
   TAILQ_HEAD(,http_client_wcmd)  hc_wqueue;
@@ -425,8 +425,8 @@ struct http_client {
   int          hc_rtp_tcp;
   int          hc_rtcp_tcp;
   int          hc_rtcp_server_port;
-  int          hc_rtp_multicast:1;
-  int          hc_rtp_avpf:1;
+  unsigned int hc_rtp_multicast:1;
+  unsigned int hc_rtp_avpf:1;
   long         hc_rtsp_stream_id;
   int          hc_rtp_timeout;
   char        *hc_rtsp_user;