Commit af41a63
src: replace ARRAY_SIZE with typesafe arraysize
To prevent `ARRAY_SIZE(&arg)` (i.e., taking the array size of a pointer)
from happening again.
PR-URL: #5969
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent ab50e82 commit af41a63Copy full SHA for af41a63
File tree
Expand file treeCollapse file tree
24 files changed
+70
-67
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
24 files changed
+70
-67
lines changedOpen diff view settings
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
49 | 49 | |
50 | 50 | |
51 | 51 | |
52 | | - |
| 52 | + |
53 | 53 | |
54 | 54 | |
55 | 55 | |
|
Collapse file
+4-4Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
310 | 310 | |
311 | 311 | |
312 | 312 | |
313 | | - |
| 313 | + |
314 | 314 | |
315 | 315 | |
316 | 316 | |
| ||
321 | 321 | |
322 | 322 | |
323 | 323 | |
324 | | - |
| 324 | + |
325 | 325 | |
326 | 326 | |
327 | 327 | |
| ||
994 | 994 | |
995 | 995 | |
996 | 996 | |
997 | | - |
| 997 | + |
998 | 998 | |
999 | 999 | |
1000 | 1000 | |
| ||
1025 | 1025 | |
1026 | 1026 | |
1027 | 1027 | |
1028 | | - |
| 1028 | + |
1029 | 1029 | |
1030 | 1030 | |
1031 | 1031 | |
|
Collapse file
+4-4Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
22 | 22 | |
23 | 23 | |
24 | 24 | |
25 | | - |
| 25 | + |
26 | 26 | |
27 | 27 | |
28 | 28 | |
| ||
175 | 175 | |
176 | 176 | |
177 | 177 | |
178 | | - |
| 178 | + |
179 | 179 | |
180 | | - |
| 180 | + |
181 | 181 | |
182 | 182 | |
183 | 183 | |
| ||
301 | 301 | |
302 | 302 | |
303 | 303 | |
304 | | - |
| 304 | + |
305 | 305 | |
306 | 306 | |
307 | 307 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
159 | 159 | |
160 | 160 | |
161 | 161 | |
162 | | - |
| 162 | + |
163 | 163 | |
164 | 164 | |
165 | 165 | |
|
Collapse file
+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
75 | 75 | |
76 | 76 | |
77 | 77 | |
78 | | - |
| 78 | + |
79 | 79 | |
80 | 80 | |
81 | 81 | |
| ||
103 | 103 | |
104 | 104 | |
105 | 105 | |
106 | | - |
| 106 | + |
107 | 107 | |
108 | 108 | |
109 | 109 | |
|
Collapse file
+8-8Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1097 | 1097 | |
1098 | 1098 | |
1099 | 1099 | |
1100 | | - |
| 1100 | + |
1101 | 1101 | |
1102 | 1102 | |
1103 | 1103 | |
| ||
2453 | 2453 | |
2454 | 2454 | |
2455 | 2455 | |
2456 | | - |
| 2456 | + |
2457 | 2457 | |
2458 | 2458 | |
2459 | 2459 | |
2460 | 2460 | |
2461 | | - |
| 2461 | + |
2462 | 2462 | |
2463 | 2463 | |
2464 | 2464 | |
| ||
3457 | 3457 | |
3458 | 3458 | |
3459 | 3459 | |
3460 | | - |
| 3460 | + |
3461 | 3461 | |
3462 | 3462 | |
3463 | 3463 | |
| ||
3578 | 3578 | |
3579 | 3579 | |
3580 | 3580 | |
3581 | | - |
| 3581 | + |
3582 | 3582 | |
3583 | 3583 | |
3584 | 3584 | |
| ||
3641 | 3641 | |
3642 | 3642 | |
3643 | 3643 | |
3644 | | - |
| 3644 | + |
3645 | 3645 | |
3646 | 3646 | |
3647 | 3647 | |
| ||
3918 | 3918 | |
3919 | 3919 | |
3920 | 3920 | |
3921 | | - |
| 3921 | + |
3922 | 3922 | |
3923 | 3923 | |
3924 | 3924 | |
| ||
3937 | 3937 | |
3938 | 3938 | |
3939 | 3939 | |
3940 | | - |
| 3940 | + |
3941 | 3941 | |
3942 | 3942 | |
3943 | 3943 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
161 | 161 | |
162 | 162 | |
163 | 163 | |
164 | | - |
| 164 | + |
165 | 165 | |
166 | 166 | |
167 | 167 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
98 | 98 | |
99 | 99 | |
100 | 100 | |
101 | | - |
| 101 | + |
102 | 102 | |
103 | 103 | |
104 | 104 | |
|
Collapse file
+11-11Lines changed: 11 additions & 11 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
760 | 760 | |
761 | 761 | |
762 | 762 | |
763 | | - |
| 763 | + |
764 | 764 | |
765 | 765 | |
766 | 766 | |
| ||
1092 | 1092 | |
1093 | 1093 | |
1094 | 1094 | |
1095 | | - |
| 1095 | + |
1096 | 1096 | |
1097 | 1097 | |
1098 | 1098 | |
| ||
1284 | 1284 | |
1285 | 1285 | |
1286 | 1286 | |
1287 | | - |
| 1287 | + |
1288 | 1288 | |
1289 | 1289 | |
1290 | 1290 | |
| ||
1318 | 1318 | |
1319 | 1319 | |
1320 | 1320 | |
1321 | | - |
| 1321 | + |
1322 | 1322 | |
1323 | 1323 | |
1324 | 1324 | |
| ||
1393 | 1393 | |
1394 | 1394 | |
1395 | 1395 | |
1396 | | - |
1397 | | - |
| 1396 | + |
| 1397 | + |
1398 | 1398 | |
1399 | 1399 | |
1400 | 1400 | |
| ||
2128 | 2128 | |
2129 | 2129 | |
2130 | 2130 | |
2131 | | - |
| 2131 | + |
2132 | 2132 | |
2133 | 2133 | |
2134 | 2134 | |
| ||
2491 | 2491 | |
2492 | 2492 | |
2493 | 2493 | |
2494 | | - |
| 2494 | + |
2495 | 2495 | |
2496 | 2496 | |
2497 | 2497 | |
| ||
4229 | 4229 | |
4230 | 4230 | |
4231 | 4231 | |
4232 | | - |
| 4232 | + |
4233 | 4233 | |
4234 | 4234 | |
4235 | 4235 | |
| ||
4883 | 4883 | |
4884 | 4884 | |
4885 | 4885 | |
4886 | | - |
| 4886 | + |
4887 | 4887 | |
4888 | 4888 | |
4889 | 4889 | |
| ||
5124 | 5124 | |
5125 | 5125 | |
5126 | 5126 | |
5127 | | - |
| 5127 | + |
5128 | 5128 | |
5129 | 5129 | |
5130 | 5130 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
257 | 257 | |
258 | 258 | |
259 | 259 | |
260 | | - |
| 260 | + |
261 | 261 | |
262 | 262 | |
263 | 263 | |
|
0 commit comments