Skip to content

Commit 33f1ecb

Browse files
committed
Add explicit void prototypes to make modern compilers happy
1 parent 8f35583 commit 33f1ecb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

uhubctl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ static const struct option long_options[] = {
261261
};
262262

263263

264-
static int print_usage()
264+
static int print_usage(void)
265265
{
266266
printf(
267267
"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)
823823
* In case of error returns negative error code.
824824
*/
825825

826-
static int usb_find_hubs()
826+
static int usb_find_hubs(void)
827827
{
828828
struct libusb_device *dev;
829829
int perm_ok = 1;

0 commit comments

Comments
 (0)