mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-22 04:37:05 +00:00
[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:
parent
263b412fdf
commit
2567447b24
@ -36,7 +36,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
|||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
|
|
||||||
#include <spice/protocol.h>
|
#include <spice/protocol.h>
|
||||||
#include <spice/error_codes.h>
|
|
||||||
|
|
||||||
#include "messages.h"
|
#include "messages.h"
|
||||||
#include "rsa.h"
|
#include "rsa.h"
|
||||||
@ -616,7 +615,7 @@ bool spice_connect_channel(struct SpiceChannel * channel)
|
|||||||
return false;
|
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);
|
DEBUG_ERROR("server replied with error %u", reply.error);
|
||||||
spice_disconnect_channel(channel);
|
spice_disconnect_channel(channel);
|
||||||
|
Loading…
Reference in New Issue
Block a user