Browse Source

fix mis-cast in unused code

For correctness, fix cast to (fdnode *) in #ifdef __WIN32 code.
(lighttpd compiles under cygwin, but not under native _WIN32)

(thx ToApolytoXaos)
personal/stbuehler/mod-csrf-old
Glenn Strauss 5 years ago
parent
commit
ede5ea2d83
  1. 2
      src/fdevent.c

2
src/fdevent.c

@ -165,7 +165,7 @@ void fdevent_sched_run(server *srv, fdevents *ev) {
if (fdn == (fdnode *)0x1) {
rc = closesocket(fd);
}
else if (fdn == (fdnode)0x2) {
else if (fdn == (fdnode *)0x2) {
rc = close(fd);
}
#else

Loading…
Cancel
Save