[master] d30f2a6 Fix variable type. off_t makes no sense for variable we keep in VM.

Poul-Henning Kamp phk at varnish-cache.org
Wed May 11 10:21:41 CEST 2011


commit d30f2a6ed8e7d175575f7ccd06ad0a19941ece4f
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed May 11 08:21:22 2011 +0000

    Fix variable type.  off_t makes no sense for variable we keep in VM.

diff --git a/lib/libvmod_std/vmod_std_fileread.c b/lib/libvmod_std/vmod_std_fileread.c
index 22d05ad..3e2fcf4 100644
--- a/lib/libvmod_std/vmod_std_fileread.c
+++ b/lib/libvmod_std/vmod_std_fileread.c
@@ -56,7 +56,7 @@ struct cached_file {
 	char		*file_name;
 	char		*contents;
 	time_t		last_modification;
-	off_t		file_sz;
+	ssize_t		file_sz;
 	VSLIST_ENTRY(cached_file) next;
 };
 



More information about the varnish-commit mailing list