Actually make it build, fix simple warning
This commit is contained in:
+1
-1
@@ -283,7 +283,7 @@ public:
|
|||||||
auto [written, failed] = Super::uncork();
|
auto [written, failed] = Super::uncork();
|
||||||
if (failed) {
|
if (failed) {
|
||||||
// do we have the same timeout for websockets?
|
// do we have the same timeout for websockets?
|
||||||
((AsyncSocket<SSL> *) s)->timeout(HTTP_IDLE_TIMEOUT_S);
|
Super::timeout(10); // this is completely wrong!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ T cond_byte_swap(T value) {
|
|||||||
uint8_t b[sizeof(T)];
|
uint8_t b[sizeof(T)];
|
||||||
} src = { value }, dst;
|
} src = { value }, dst;
|
||||||
|
|
||||||
for (int i = 0; i < sizeof(value); i++) {
|
for (unsigned int i = 0; i < sizeof(value); i++) {
|
||||||
dst.b[i] = src.b[sizeof(value) - 1 - i];
|
dst.b[i] = src.b[sizeof(value) - 1 - i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user