Skip to content

Commit

Permalink
Merge pull request iagox86#92 from joncave/getopt_int
Browse files Browse the repository at this point in the history
getopt_long_only() returns an int
  • Loading branch information
iagox86 committed Mar 28, 2016
2 parents 878e15f + c06d8d6 commit dbb9a2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/dnscat.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ int main(int argc, char *argv[])
{0, 0, 0, 0} /* End */
};

char c;
int c;
int option_index;
const char *option_name;

Expand All @@ -422,7 +422,7 @@ int main(int argc, char *argv[])

/* Parse the command line options. */
opterr = 0;
while((c = getopt_long_only(argc, argv, "", long_options, &option_index)) != EOF)
while((c = getopt_long_only(argc, argv, "", long_options, &option_index)) != -1)
{
switch(c)
{
Expand Down

0 comments on commit dbb9a2e

Please sign in to comment.