]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/journal-remote/journal-gatewayd.c
journal-remote: fix warning about deprecated µhttpd macro
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 15 Jan 2016 19:13:12 +0000 (14:13 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 18 Jan 2016 20:21:28 +0000 (15:21 -0500)
commitce7229a224228bb996f50181d09757406891e3d6
tree6007c35a6657ca4ad0a01ee5baed4c65eaa6336a
parent555f5cdc2d437ac454cb83a9dee5e3f30be7ab0d
journal-remote: fix warning about deprecated µhttpd macro

src/journal-remote/journal-remote.c:590:13: warning: Value MHD_HTTP_METHOD_NOT_ACCEPTABLE is deprecated, use MHD_HTTP_NOT_ACCEPTABLE
                 return mhd_respond(connection, MHD_HTTP_METHOD_NOT_ACCEPTABLE,
             ^

The new define was added in 0.9.38. Instead of requiring the new
libmicrohttpd version, provide the fallback, it is trivial.
src/journal-remote/journal-gatewayd.c
src/journal-remote/journal-remote.c
src/journal-remote/microhttpd-util.h