Skip to content

Commit

Permalink
fix compile error on macOS
Browse files Browse the repository at this point in the history
Signed-off-by: yunh <haihai107@126.com>
  • Loading branch information
goodpaperman authored and emcrisostomo committed Jun 1, 2021
1 parent c662b50 commit 66a534e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fswatch/src/fswatch.cpp
Expand Up @@ -278,7 +278,7 @@ static bool parse_event_filter(const char *optarg)
}
}

static bool validate_latency(double latency)
static bool validate_latency(double latency, const char *optarg)
{
if (latency == 0.0)
{
Expand Down Expand Up @@ -594,7 +594,7 @@ static void parse_opts(int argc, char **argv)
case 'l':
lvalue = strtod(optarg, nullptr);

if (!validate_latency(lvalue))
if (!validate_latency(lvalue, optarg))
{
exit(FSW_EXIT_LATENCY);
}
Expand Down

0 comments on commit 66a534e

Please sign in to comment.