normalize repeated instances of code as follows:
authorLuigi Rizzo <rizzo@icir.org>
Thu, 6 Apr 2006 16:17:04 +0000 (16:17 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Thu, 6 Apr 2006 16:17:04 +0000 (16:17 +0000)
commitc3249e2cb4d9a406c3e32852cde2c9c2597f62c2
treebe054556122de2f5c1aacc0806e4b9abb1c7404f
parent590e21393e63cc3c0321a243753a3752d4928a07
normalize repeated instances of code as follows:

-       if (res >= 0)
-               return RESULT_SUCCESS;
-       else
-               return RESULT_FAILURE;
+       return (res >= 0) ? RESULT_SUCCESS : RESULT_FAILURE;

(we should probably create a macro for this,

#define RET(r) ((r) >= 0) ? RESULT_SUCCESS : RESULT_FAILURE)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17899 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_agi.c