Fix several build warnings and minor bugs

This commit is contained in:
Cameron Gutman
2022-11-20 19:20:42 -06:00
parent 56f84ab662
commit 098f53cd0b
11 changed files with 16 additions and 18 deletions

View File

@@ -421,7 +421,7 @@ int gs_unpair(PSERVER_DATA server) {
int gs_pair(PSERVER_DATA server, char* pin) {
int ret = GS_OK;
char* result = NULL;
char url[4096];
char url[5120];
uuid_t uuid;
char uuid_str[UUID_STRLEN];
@@ -701,10 +701,8 @@ int gs_start_app(PSERVER_DATA server, STREAM_CONFIGURATION *config, int appId, b
PDISPLAY_MODE mode = server->modes;
bool correct_mode = false;
bool supported_resolution = false;
while (mode != NULL) {
if (mode->width == config->width && mode->height == config->height) {
supported_resolution = true;
if (mode->refresh == config->fps)
correct_mode = true;
}

View File

@@ -26,9 +26,6 @@
static CURL *curl;
static const char *pCertFile = "./client.pem";
static const char *pKeyFile = "./key.pem";
static bool debug;
static size_t _write_curl(void *contents, size_t size, size_t nmemb, void *userp)

View File

@@ -25,8 +25,6 @@
#define STATUS_OK 200
static XML_Parser parser;
struct xml_query {
char *memory;
size_t size;