From dc60d98ff1adba20957543db68706477d4fd1581 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Wed, 18 Mar 2015 15:47:09 -0400 Subject: [PATCH] Removed TOX_USER_STATUS_INVALID. --- toxcore/tox.c | 2 +- toxcore/tox.h | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/toxcore/tox.c b/toxcore/tox.c index a5141652..f547c402 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c @@ -702,7 +702,7 @@ TOX_USER_STATUS tox_friend_get_status(const Tox *tox, uint32_t friend_number, TO if (ret == USERSTATUS_INVALID) { SET_ERROR_PARAMETER(error, TOX_ERR_FRIEND_QUERY_FRIEND_NOT_FOUND); - return TOX_USER_STATUS_INVALID; + return TOX_USER_STATUS_BUSY + 1; } SET_ERROR_PARAMETER(error, TOX_ERR_FRIEND_QUERY_OK); diff --git a/toxcore/tox.h b/toxcore/tox.h index c9be93a0..0df75976 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h @@ -289,11 +289,7 @@ typedef enum TOX_USER_STATUS { * User is busy. Signals to other clients that this client does not * currently wish to communicate. */ - TOX_USER_STATUS_BUSY, - /** - * Invalid status used when function returns an error. - */ - TOX_USER_STATUS_INVALID + TOX_USER_STATUS_BUSY } TOX_USER_STATUS; /**