Skip to content

Commit

Permalink
Help shouldn't require an argument
Browse files Browse the repository at this point in the history
Fix incomplete type warning
  • Loading branch information
Codemonkey1973 committed Mar 1, 2024
1 parent 7b2f2f1 commit 6adb3be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ static void vParseCommandLineOptions(tsInstance *psInstance, int argc, char *arg

{ "verbosity", required_argument, 0, 'v' },

{ "help", required_argument, 0, 'h' },
{ "help", required_argument, 0, '?' },
{ "help", no_argument, 0, 'h' },
{ "help", no_argument, 0, '?' },

{ NULL, 0, 0, 0 },
};
Expand All @@ -331,7 +331,7 @@ static void vParseCommandLineOptions(tsInstance *psInstance, int argc, char *arg
while(1)
{

c = getopt_long(argc, argv, "d:w:r:R:g:G:s:i:e:m:v:?:h:", lopts, NULL);
c = getopt_long(argc, argv, "d:w:r:R:g:G:s:i:e:m:v:?h", lopts, NULL);

if (c == -1)
break;
Expand Down
1 change: 1 addition & 0 deletions orlaco.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <string.h>
#include "common.h"
#include "orlaco.h"
#include "sys/time.h"

/****************************************************************************/
/*** Macro Definitions ***/
Expand Down

0 comments on commit 6adb3be

Please sign in to comment.