diff options
author | Walter Doekes <walter+asterisk@wjd.nu> | 2012-02-08 20:49:48 +0000 |
---|---|---|
committer | Walter Doekes <walter+asterisk@wjd.nu> | 2012-02-08 20:49:48 +0000 |
commit | db24fc2523da16bd812abb2a35b6320d24083e3f (patch) | |
tree | 4f4d564d4c32538014aefd01789f3f2bffc5520e /apps/app_osplookup.c | |
parent | 0adeb88318467f75f84a70990b1f982b9ca470f3 (diff) |
Avoid cppcheck warnings; removing unused vars and a bit of cleanup.
Patch by: Clod Patry
Review: https://reviewboard.asterisk.org/r/1651
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@354429 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_osplookup.c')
-rw-r--r-- | apps/app_osplookup.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/app_osplookup.c b/apps/app_osplookup.c index 336de102c..4ce2846cf 100644 --- a/apps/app_osplookup.c +++ b/apps/app_osplookup.c @@ -614,7 +614,6 @@ struct osp_metrics { float min; /* Minimum */ float max; /* Maximum */ float avg; /* Average */ - float ndev; /* Normal deviation */ float sdev; /* Standard deviation */ }; @@ -1452,7 +1451,7 @@ static int osp_create_callid( if (callid == NULL) { ast_log(LOG_ERROR, "Invalid parameters\n"); - res = OSP_ERROR; + return OSP_ERROR; } callid->len = sizeof(callid->buf); @@ -1463,6 +1462,7 @@ static int osp_create_callid( case OSP_CALLID_SIP: case OSP_CALLID_IAX: res = OSP_FAILED; + break; default: res = OSP_ERROR; break; @@ -1529,7 +1529,7 @@ static int osp_lookup( if (results == NULL) { ast_log(LOG_ERROR, "Invalid parameters\n"); - res = OSP_ERROR; + return OSP_ERROR; } osp_convert_inout(results->dest, dest, sizeof(dest)); @@ -1787,7 +1787,7 @@ static int osp_lookup( /*! * \brief OSP Lookup Next function * \param name OSP provider name - * \param cause Asterisk hangup cuase + * \param cause Asterisk hangup cause * \param results Lookup results, in/output * \return OSP_OK Found , OSP_FAILED No route, OSP_ERROR Error */ @@ -1809,7 +1809,7 @@ static int osp_next( if (results == NULL) { ast_log(LOG_ERROR, "Invalid parameters\n"); - res = OSP_ERROR; + return OSP_ERROR; } results->outtech[0] = '\0'; |