diff options
-rw-r--r-- | addons/chan_ooh323.c | 7 | ||||
-rw-r--r-- | addons/ooh323cDriver.h | 2 | ||||
-rw-r--r-- | autoconf/ast_ext_lib.m4 | 2 |
3 files changed, 7 insertions, 4 deletions
diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c index 285ed2849..3afcecd96 100644 --- a/addons/chan_ooh323.c +++ b/addons/chan_ooh323.c @@ -2604,9 +2604,12 @@ static struct ooh323_peer *build_peer(const char *name, struct ast_variable *v, } } else if (!strcasecmp(v->name, "outgoinglimit")) { - peer->outgoinglimit = atoi(v->value); - if (peer->outgoinglimit < 0) + int val = atoi(v->value); + if (val < 0) { peer->outgoinglimit = 0; + } else { + peer->outgoinglimit = val; + } } else if (!strcasecmp(v->name, "accountcode")) { ast_copy_string(peer->accountcode, v->value, sizeof(peer->accountcode)); } else if (!strcasecmp(v->name, "faststart")) { diff --git a/addons/ooh323cDriver.h b/addons/ooh323cDriver.h index 333f01f33..00bf9b551 100644 --- a/addons/ooh323cDriver.h +++ b/addons/ooh323cDriver.h @@ -14,7 +14,7 @@ * *****************************************************************************/ #ifndef _OO_H323CDRIVER_H_ -#define __OO_H323DRIVER_H_ +#define _OO_H323CDRIVER_H_ #include "chan_ooh323.h" #include "ootypes.h" #include "ooh323ep.h" diff --git a/autoconf/ast_ext_lib.m4 b/autoconf/ast_ext_lib.m4 index 080b8c34d..8e5b50e4a 100644 --- a/autoconf/ast_ext_lib.m4 +++ b/autoconf/ast_ext_lib.m4 @@ -39,7 +39,7 @@ AC_DEFUN([AST_EXT_LIB_SETUP], # AST_OPTION_ONLY([option name], [option variable], [option description], [default value]) AC_DEFUN([AST_OPTION_ONLY], [ -AC_ARG_WITH([$1], AC_HELP_STRING([--with-$1=PATH], [use $3 in PATH]), +AC_ARG_WITH([$1], AS_HELP_STRING([--with-$1=PATH], [use $3 in PATH]), [ case ${withval} in n|no) |