userdata was changed to a pointer to a socket, but tx() was not updated

My Linux system does not like mongoose.h at the end...
This commit is contained in:
Sergio R. Caprile authored and GitHub committed 2022-11-10 15:00:43 -03:00
1 parent f498d69b7d
commit 5418a8c28a
1 file changed
+1 -1
+1 -1
View File
@@ -14,7 +14,7 @@ void signal_handler(int signo) {
}
static size_t tap_tx(const void *buf, size_t len, void *userdata) {
ssize_t res = write((int) (size_t) userdata, buf, len);
ssize_t res = write(*(int*) userdata, buf, len);
if (res < 0) {
MG_ERROR(("tap_tx failed: %d", errno));
return 0;