Browse Source

Make clang static checker happy.

I don't know a machine where sizeof(void *) != sizeof(struct x *)
but let's make clang checker happy anyway.
Georgi Chorbadzhiyski 5 years ago
parent
commit
5d645673d0
5 changed files with 5 additions and 5 deletions
  1. 1
    1
      eit.c
  2. 1
    1
      nit.c
  3. 1
    1
      pat.c
  4. 1
    1
      pmt.c
  5. 1
    1
      sdt.c

+ 1
- 1
eit.c View File

@@ -17,7 +17,7 @@ struct ts_eit *ts_eit_alloc() {
17 17
 	struct ts_eit *eit = calloc(1, sizeof(struct ts_eit));
18 18
 	eit->section_header = ts_section_data_alloc();
19 19
 	eit->streams_max = 128;
20
-	eit->streams = calloc(eit->streams_max, sizeof(void *));
20
+	eit->streams = calloc(eit->streams_max, sizeof(struct ts_eit_stream *));
21 21
 	return eit;
22 22
 }
23 23
 

+ 1
- 1
nit.c View File

@@ -17,7 +17,7 @@ struct ts_nit *ts_nit_alloc() {
17 17
 	struct ts_nit *nit = calloc(1, sizeof(struct ts_nit));
18 18
 	nit->section_header = ts_section_data_alloc();
19 19
 	nit->streams_max = 128;
20
-	nit->streams = calloc(nit->streams_max, sizeof(void *));
20
+	nit->streams = calloc(nit->streams_max, sizeof(struct ts_nit_stream *));
21 21
 	return nit;
22 22
 }
23 23
 

+ 1
- 1
pat.c View File

@@ -17,7 +17,7 @@ struct ts_pat *ts_pat_alloc() {
17 17
 	struct ts_pat *pat = calloc(1, sizeof(struct ts_pat));
18 18
 	pat->section_header	= ts_section_data_alloc();
19 19
 	pat->programs_max	= 128;
20
-	pat->programs		= calloc(pat->programs_max, sizeof(void *));
20
+	pat->programs		= calloc(pat->programs_max, sizeof(struct ts_pat_program *));
21 21
 	return pat;
22 22
 }
23 23
 

+ 1
- 1
pmt.c View File

@@ -17,7 +17,7 @@ struct ts_pmt *ts_pmt_alloc() {
17 17
 	struct ts_pmt *pmt = calloc(1, sizeof(struct ts_pmt));
18 18
 	pmt->section_header	= ts_section_data_alloc();
19 19
 	pmt->streams_max	= 128;
20
-	pmt->streams		= calloc(pmt->streams_max, sizeof(void *));
20
+	pmt->streams		= calloc(pmt->streams_max, sizeof(struct ts_pmt_stream *));
21 21
 	return pmt;
22 22
 }
23 23
 

+ 1
- 1
sdt.c View File

@@ -17,7 +17,7 @@ struct ts_sdt *ts_sdt_alloc() {
17 17
 	struct ts_sdt *sdt = calloc(1, sizeof(struct ts_sdt));
18 18
 	sdt->section_header	= ts_section_data_alloc();
19 19
 	sdt->streams_max	= 128;
20
-	sdt->streams		= calloc(sdt->streams_max, sizeof(void *));
20
+	sdt->streams		= calloc(sdt->streams_max, sizeof(struct ts_sdt_stream *));
21 21
 	return sdt;
22 22
 }
23 23
 

Loading…
Cancel
Save