X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/db9a70b159a107da29f88865d63ba14dd127556f..aa943bc9a68ccdcc5cbe29f6ac3b5e787d4c22ca:/cache.c diff --git a/cache.c b/cache.c index 900b161..57c8918 100644 --- a/cache.c +++ b/cache.c @@ -13,12 +13,12 @@ * */ -#ifdef HAVE_LINUX_SENDFILE -#include -#endif #include "cgit.h" #include "cache.h" #include "html.h" +#ifdef HAVE_LINUX_SENDFILE +#include +#endif #define CACHE_BUFSIZE (1024 * 4) @@ -411,7 +411,7 @@ int cache_ls(const char *path) DIR *dir; struct dirent *ent; int err = 0; - struct cache_slot slot = { 0 }; + struct cache_slot slot = { NULL }; struct strbuf fullname = STRBUF_INIT; size_t prefixlen;