X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Ffb-mmap.c;h=56c2ef666504d2abfac52832e62d16d697885dd8;hb=ec085c955731db594926666e9bc6bdbbc1f5be9e;hp=3b4765b9617998a26239df18c198ef3322202386;hpb=d18403664f23ca1464d659b29912758d72b2abec;p=libucw.git diff --git a/lib/fb-mmap.c b/lib/fb-mmap.c index 3b4765b9..56c2ef66 100644 --- a/lib/fb-mmap.c +++ b/lib/fb-mmap.c @@ -157,11 +157,14 @@ bfmm_close(struct fastbuf *f) static int bfmm_config(struct fastbuf *f, uns item, int value) { + int orig; + switch (item) { case BCONFIG_IS_TEMP_FILE: + orig = FB_MMAP(f)->is_temp_file; FB_MMAP(f)->is_temp_file = value; - return 0; + return orig; default: return -1; }