mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-02-02 19:03:31 +00:00
change spice port type to unsigned short
so that ports >32767 get displayed correctly, also signed overflow is undefined behaviour Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
92d87d983b
commit
59cac9c0cc
2 changed files with 2 additions and 2 deletions
|
@ -138,7 +138,7 @@ bool spice_discard (const struct SpiceChannel * channel, ssize_t size);
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
|
||||||
bool spice_connect(const char * host, const short port, const char * password)
|
bool spice_connect(const char * host, const unsigned short port, const char * password)
|
||||||
{
|
{
|
||||||
strncpy(spice.password, password, sizeof(spice.password) - 1);
|
strncpy(spice.password, password, sizeof(spice.password) - 1);
|
||||||
memset(&spice.addr, 0, sizeof(spice.addr));
|
memset(&spice.addr, 0, sizeof(spice.addr));
|
||||||
|
|
|
@ -21,7 +21,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
bool spice_connect(const char * host, const short port, const char * password);
|
bool spice_connect(const char * host, const unsigned short port, const char * password);
|
||||||
void spice_disconnect();
|
void spice_disconnect();
|
||||||
bool spice_process();
|
bool spice_process();
|
||||||
bool spice_ready();
|
bool spice_ready();
|
||||||
|
|
Loading…
Reference in a new issue