commit 0cef9478411f528bc7f37b8c7a21d21a7f650592 from: Omar Polo via: Thomas Adam date: Fri Jan 06 09:33:00 2023 UTC change gotweb_render_content_type argument type to const char * it's a string, `const char *' is fine (and what all the callers use anyway.) commit - d7034a4ea257e654c3ac01eae64452461d31d233 commit + 0cef9478411f528bc7f37b8c7a21d21a7f650592 blob - efbd65db33afe8b913df52cf9c6ded70308705b8 blob + 34768ee07c4fbf289caf1d73eef67a0b24b97216 --- gotwebd/gotweb.c +++ gotwebd/gotweb.c @@ -658,7 +658,7 @@ gotweb_free_transport(struct transport *t) } const struct got_error * -gotweb_render_content_type(struct request *c, const uint8_t *type) +gotweb_render_content_type(struct request *c, const char *type) { const char *csp = "default-src 'self'; script-src 'none'; " "object-src 'none';"; blob - 3c805ab5bb454c73db3f42dc2068c27fe2897265 blob + 1f26c4630083695ef375fda2877235580500fca3 --- gotwebd/gotwebd.h +++ gotwebd/gotwebd.h @@ -436,7 +436,7 @@ int sockets_privinit(struct gotwebd *, struct socket * /* gotweb.c */ const struct got_error *gotweb_render_content_type(struct request *, - const uint8_t *); + const char *); const struct got_error *gotweb_render_content_type_file(struct request *, const char *, const char *, const char *);