Something is wrong in 'userp' for the HTTP2 recv_callback().

Another patch for http2.c; the number of elements in the 'nghttp2_session_callbacks' structure is now reduced by 2 in version 0.3.0 (I'm not sure when the change happened, but
checking for ver 0.3.0 work for me).

The excess initialisers gets passed by gcc, but not MSVC. It says:
http2.c(149) : error C2078: too many initializers".
So a patch like this would be in order:

--- orig/http2.c   2014-01-29 15:19:25 +0000
+++ http2.c     2014-01-29 16:54:23 +0000
@@ -140,9 +143,11 @@
  NULL,
  NULL,
  NULL,
-  NULL,
-  NULL,
  NULL
+#if (NGHTTP2_VERSION_NUM < 0x000300)
+ ,NULL
+ ,NULL
+#endif
};

/*
---

--gv



-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to