Skip to content

Commit

Permalink
Merge pull request #60 from cpackham/tcpreplay_seterr
Browse files Browse the repository at this point in the history
Fix build errors when ENABLE_VERBOSE is not set
  • Loading branch information
fklassen committed Jan 29, 2014
2 parents ee02358 + 12d0d08 commit 9fd5eb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tcpreplay_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ tcpreplay_set_verbose(tcpreplay_t *ctx, bool value)
ctx->options->verbose = value;
return 0;
#else
tcpreplay_seterr(ctx, "verbose mode not supported");
tcpreplay_seterr(ctx, "%s", "verbose mode not supported");
return -1;
#endif
}
Expand All @@ -710,7 +710,7 @@ tcpreplay_set_tcpdump_args(tcpreplay_t *ctx, char *value)
ctx->options->tcpdump_args = safe_strdup(value);
return 0;
#else
tcpreplay_seterr(ctx, "verbose mode not supported");
tcpreplay_seterr(ctx, "%s", "verbose mode not supported");
return -1;
#endif
}
Expand All @@ -731,7 +731,7 @@ tcpreplay_set_tcpdump(tcpreplay_t *ctx, tcpdump_t *value)
ctx->options->tcpdump = value;
return 0;
#else
tcpreplay_seterr(ctx, "verbose mode not supported");
tcpreplay_seterr(ctx, "%s", "verbose mode not supported");
return -1;
#endif
}
Expand Down

0 comments on commit 9fd5eb5

Please sign in to comment.