]> git.meshlink.io Git - meshlink/blobdiff - src/meta.c
Fix compiler warnings on some BSD variants.
[meshlink] / src / meta.c
index 3bf28093f33b25629e858999d9065c492b905f96..fafba653c4d014f237585d7b704e4e56f642121c 100644 (file)
@@ -201,7 +201,7 @@ bool receive_meta(connection_t *c) {
                                                        logger(DEBUG_CONNECTIONS, LOG_ERR, "Invalid response from proxy server");
                                                        return false;
                                                }
-                                               if(tcpbuffer[1] == 0xff) {
+                                               if(tcpbuffer[1] == (char)0xff) {
                                                        logger(DEBUG_CONNECTIONS, LOG_ERR, "Proxy request rejected: unsuitable authentication method");
                                                        return false;
                                                }