chiark / gitweb /
Add __attribute__((const, pure, format)) in various places
[elogind.git] / src / journal / mmap-cache.c
index 251aefe12113c3805583ab04a2cf9a0a9b48128d..54bf1148e18d572d67db3d980a8609b7325971b7 100644 (file)
@@ -134,7 +134,7 @@ static void window_free(Window *w) {
         free(w);
 }
 
-static bool window_matches(Window *w, int fd, int prot, uint64_t offset, size_t size) {
+_pure_ static bool window_matches(Window *w, int fd, int prot, uint64_t offset, size_t size) {
         assert(w);
         assert(fd >= 0);
         assert(size > 0);