diff options
Diffstat (limited to 'pjsip-apps/src/samples/siprtp.c')
-rw-r--r-- | pjsip-apps/src/samples/siprtp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pjsip-apps/src/samples/siprtp.c b/pjsip-apps/src/samples/siprtp.c index f783b6aa..1bee1f5c 100644 --- a/pjsip-apps/src/samples/siprtp.c +++ b/pjsip-apps/src/samples/siprtp.c @@ -914,8 +914,9 @@ static pj_status_t init_options(int argc, char *argv[]) switch (c) { case 'c': app.max_calls = atoi(pj_optarg); - if (app.max_calls < 0 || app.max_calls > MAX_CALLS) { - PJ_LOG(3,(THIS_FILE, "Invalid max calls value %s", pj_optarg)); + if (app.max_calls > MAX_CALLS) { + PJ_LOG(3,(THIS_FILE,"Invalid max calls value %s " + "(must be <= %d)", pj_optarg, MAX_CALLS)); return 1; } break; |