Add explicit void prototypes to make modern compilers happy

This commit is contained in:
Vadim Mikhailov
2023-03-31 14:44:54 -07:00
parent 8f355837b7
commit 33f1ecb2dd

View File

@@ -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;