tests: curlhttpsrc: fix compiler warning on raspbian

tests/check/elements/curlhttpsrc.c:142:14: warning: format ‘%lu’
expects argument of type ‘long unsigned int’, but argument 8 has
type ‘gsize’ {aka ‘unsigned int’}

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1239>
This commit is contained in:
Tim-Philipp Müller 2020-05-03 10:05:32 +00:00
parent 9539eecf20
commit c79db43299

View file

@ -139,7 +139,7 @@ do_get (GioHttpServer * server, const HttpRequest * req, GOutputStream * out)
} }
g_string_append (s, "\r\n"); g_string_append (s, "\r\n");
GST_DEBUG ("Response headers: %lu\n%s\n********", s->len, s->str); GST_DEBUG ("Response headers: %u\n%s\n********", (guint) s->len, s->str);
g_output_stream_write_all (out, s->str, s->len, &written, NULL, NULL); g_output_stream_write_all (out, s->str, s->len, &written, NULL, NULL);
fail_if (written != s->len); fail_if (written != s->len);
g_string_free (s, TRUE); g_string_free (s, TRUE);