summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-06-09 13:10:56 +0100
committerVincent Sanders <vince@kyllikki.org>2014-06-09 13:13:59 +0100
commit8e29e517d59f0d04dd2d09c6b8760aa1236a1abf (patch)
treefc126b0fb960def166be113827733d367f6fc9bb /desktop
parente687a359c702e13a7f3e7bb5ba8e7b76d32283b1 (diff)
downloadnetsurf-8e29e517d59f0d04dd2d09c6b8760aa1236a1abf.tar.gz
netsurf-8e29e517d59f0d04dd2d09c6b8760aa1236a1abf.tar.bz2
fix disc cache size option to be unsigned
Diffstat (limited to 'desktop')
-rw-r--r--desktop/netsurf.c2
-rw-r--r--desktop/options.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/desktop/netsurf.c b/desktop/netsurf.c
index 153810705..a1bc42b93 100644
--- a/desktop/netsurf.c
+++ b/desktop/netsurf.c
@@ -191,7 +191,7 @@ nserror netsurf_init(const char *messages, const char *store_path)
hlcache_parameters.llcache.limit -= image_cache_parameters.limit;
/* set backing store target limit */
- hlcache_parameters.llcache.store.limit = nsoption_int(disc_cache_size);
+ hlcache_parameters.llcache.store.limit = nsoption_uint(disc_cache_size);
/* set backing store hysterissi to 20% */
hlcache_parameters.llcache.store.hysteresis = (hlcache_parameters.llcache.store.limit * 20) / 100;;
diff --git a/desktop/options.h b/desktop/options.h
index 391dfbc08..33ecb7554 100644
--- a/desktop/options.h
+++ b/desktop/options.h
@@ -89,7 +89,7 @@ NSOPTION_STRING(accept_charset, NULL)
NSOPTION_INTEGER(memory_cache_size, 12 * 1024 * 1024)
/** Preferred expiry size of disc cache / bytes. */
-NSOPTION_INTEGER(disc_cache_size, 1024 * 1024 * 1024)
+NSOPTION_UINT(disc_cache_size, 1024 * 1024 * 1024)
/** Preferred expiry age of disc cache / days. */
NSOPTION_INTEGER(disc_cache_age, 28)