mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-21 11:30:01 +00:00
Unbreak
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:
1 parent
f498d69b7d
commit
5418a8c28a
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user