From 33f1ecb2dd8398e89bfe493e408b2e04279b19ca Mon Sep 17 00:00:00 2001 From: Vadim Mikhailov Date: Fri, 31 Mar 2023 14:44:54 -0700 Subject: [PATCH] Add explicit void prototypes to make modern compilers happy --- uhubctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uhubctl.c b/uhubctl.c index 434ac30..56dae4f 100644 --- a/uhubctl.c +++ b/uhubctl.c @@ -261,7 +261,7 @@ static const struct option long_options[] = { }; -static int print_usage() +static int print_usage(void) { printf( "uhubctl: utility to control USB port power for smart hubs.\n" @@ -823,7 +823,7 @@ static int print_port_status(struct hub_info * hub, int portmask) * In case of error returns negative error code. */ -static int usb_find_hubs() +static int usb_find_hubs(void) { struct libusb_device *dev; int perm_ok = 1;