Skip to content

Commit

Permalink
ibdiag: Use modern C function declarations
Browse files Browse the repository at this point in the history
() is an archaic form, use (void)

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
  • Loading branch information
jgunthorpe committed Mar 8, 2019
1 parent 09922b3 commit e98bef8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/ibdiag_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ extern int ibdiag_process_opts(int argc, char *const argv[], void *context,
char *optarg),
const char *usage_args,
const char *usage_examples[]);
extern void ibdiag_show_usage();
extern void ibdiag_show_usage(void);
extern void ibexit(const char *fn, const char *msg, ...);

/* convert counter values to a float with a unit specifier returned (using
Expand Down
2 changes: 1 addition & 1 deletion src/ibdiag_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ static void read_ibdiag_config(const char *file)
}


void ibdiag_show_usage()
void ibdiag_show_usage(void)
{
struct option *o = long_opts;
int n;
Expand Down

0 comments on commit e98bef8

Please sign in to comment.