Change RETURN_STR() macro to silence 'always evaluates to true' warnings.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@475 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -1252,7 +1252,7 @@ static char *alias_server_version (void)
|
||||
#define GET_INT_ARG(x, y) {RETURN_IF_EMPTY(y); x = atol(safe_new_next_arg(y, &y));}
|
||||
#define GET_FLOAT_ARG(x, y) {RETURN_IF_EMPTY(y); x = atof(safe_new_next_arg(y, &y));}
|
||||
#define GET_STR_ARG(x, y) {RETURN_IF_EMPTY(y); x = new_next_arg(y, &y);RETURN_IF_EMPTY(x);}
|
||||
#define RETURN_STR(x) return m_strdup((x) ? (x) : EMPTY)
|
||||
#define RETURN_STR(x) return m_strdup((x) != NULL ? (x) : EMPTY)
|
||||
#define RETURN_MSTR(x) return ((x) ? (x) : EMPTY_STRING);
|
||||
#define RETURN_INT(x) return m_strdup(ltoa(x))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user