[client] spice: use correct enumeration for SpiceLinkReply

SPICEC_ERROR_CODE_xxx constants are supposed to be used by old
client (obsoleted years ago).
SpiceLinkReply error field uses SPICE_LINK_ERR_xxx enumeration
constants.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
Frediano Ziglio 2019-01-21 10:43:46 +00:00 committed by Geoffrey McRae
parent 263b412fdf
commit 2567447b24

View File

@ -36,7 +36,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include <arpa/inet.h>
#include <spice/protocol.h>
#include <spice/error_codes.h>
#include "messages.h"
#include "rsa.h"
@ -616,7 +615,7 @@ bool spice_connect_channel(struct SpiceChannel * channel)
return false;
}
if (reply.error != SPICEC_ERROR_CODE_SUCCESS)
if (reply.error != SPICE_LINK_ERR_OK)
{
DEBUG_ERROR("server replied with error %u", reply.error);
spice_disconnect_channel(channel);