diff options
author | Joshua Colp <jcolp@digium.com> | 2017-11-20 12:51:18 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-11-20 12:51:18 -0600 |
commit | 3356c796a02d7ce042f7ffbdf5a009b7195262f6 (patch) | |
tree | c808f3bc85c057d756b0f120b9c87f2003ad4640 /res | |
parent | be3a33f3d1c8089e7e7f74747debb2b239345321 (diff) | |
parent | 0f270cbe9e977424bb3a5d03ce3b5fe412f5aea3 (diff) |
Merge "res_fax: Remove checks for unsigned values being >= 0." into 13
Diffstat (limited to 'res')
-rw-r--r-- | res/res_fax.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/res/res_fax.c b/res/res_fax.c index 666c2d997..6e4451b67 100644 --- a/res/res_fax.c +++ b/res/res_fax.c @@ -4563,12 +4563,7 @@ static int acf_faxopt_write(struct ast_channel *chan, const char *cmd, char *dat unsigned int gwtimeout; if (sscanf(timeout, "%30u", &gwtimeout) == 1) { - if (gwtimeout >= 0) { - details->gateway_timeout = gwtimeout * 1000; - } else { - ast_log(LOG_WARNING, "%s(%s) timeout cannot be negative. Ignoring timeout\n", - cmd, data); - } + details->gateway_timeout = gwtimeout * 1000; } else { ast_log(LOG_WARNING, "Unsupported timeout '%s' passed to FAXOPT(%s).\n", timeout, data); } @@ -4607,13 +4602,7 @@ static int acf_faxopt_write(struct ast_channel *chan, const char *cmd, char *dat if (details->faxdetect_id < 0) { if (timeout) { if (sscanf(timeout, "%30u", &fdtimeout) == 1) { - if (fdtimeout >= 0) { - fdtimeout *= 1000; - } else { - ast_log(LOG_WARNING, "%s(%s) timeout cannot be negative. Ignoring timeout\n", - cmd, data); - fdtimeout = 0; - } + fdtimeout *= 1000; } else { ast_log(LOG_WARNING, "Unsupported timeout '%s' passed to FAXOPT(%s).\n", timeout, data); |