|
@@ -390,7 +390,7 @@ static void parse_options(struct videohub_data *data, int argc, char **argv) {
|
390
|
390
|
static void check_number_of_ports(struct port_set *p) {
|
391
|
391
|
if (p->num > ARRAY_SIZE(p->port))
|
392
|
392
|
die("The device supports %d ports. Increase MAX_PORTS (%lu) and recompile the program.",
|
393
|
|
- p->num, ARRAY_SIZE(p->port));
|
|
393
|
+ p->num, (unsigned long)ARRAY_SIZE(p->port));
|
394
|
394
|
}
|
395
|
395
|
|
396
|
396
|
static void reset_routed_to(struct port_set *p) {
|