X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Ffb-mmap.c;h=2a8b53720304a94a75ee21ed75d57c20a3d58aa0;hb=315d65b74168b23e820b9dde6166ec19bd048228;hp=afd0bb12621352f854ae1819914b0dde15a8df8a;hpb=e8060fa4647c5c4ccf07efb91a35f65c543dfc4f;p=libucw.git diff --git a/ucw/fb-mmap.c b/ucw/fb-mmap.c index afd0bb12..2a8b5372 100644 --- a/ucw/fb-mmap.c +++ b/ucw/fb-mmap.c @@ -11,7 +11,7 @@ #include "ucw/lib.h" #include "ucw/fastbuf.h" -#include "ucw/lfs.h" +#include "ucw/io.h" #include "ucw/conf.h" #include @@ -22,6 +22,7 @@ static uns mmap_window_size = 16*CPU_PAGE_SIZE; static uns mmap_extend_size = 4*CPU_PAGE_SIZE; +#ifndef TEST static struct cf_section fbmm_config = { CF_ITEMS { CF_UNS("WindowSize", &mmap_window_size), @@ -34,6 +35,7 @@ static void CONSTRUCTOR fbmm_init_config(void) { cf_declare_section("FBMMap", &fbmm_config, 0); } +#endif struct fb_mmap { struct fastbuf fb; @@ -192,7 +194,7 @@ bfmmopen_internal(int fd, const char *name, uns mode) #ifdef TEST -int main(int argc, char **argv) +int main(int UNUSED argc, char **argv) { struct fb_params par = { .type = FB_MMAP }; struct fastbuf *f = bopen_file(argv[1], O_RDONLY, &par);