summaryrefslogtreecommitdiff
path: root/utils/nsoption.h
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 /utils/nsoption.h
parente687a359c702e13a7f3e7bb5ba8e7b76d32283b1 (diff)
downloadnetsurf-8e29e517d59f0d04dd2d09c6b8760aa1236a1abf.tar.gz
netsurf-8e29e517d59f0d04dd2d09c6b8760aa1236a1abf.tar.bz2
fix disc cache size option to be unsigned
Diffstat (limited to 'utils/nsoption.h')
-rw-r--r--utils/nsoption.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/nsoption.h b/utils/nsoption.h
index d111729aa..134223aa5 100644
--- a/utils/nsoption.h
+++ b/utils/nsoption.h
@@ -308,6 +308,9 @@ int nsoption_snoptionf(char *string, size_t size, enum nsoption_e option, const
/** set an integer option in the default table */
#define nsoption_set_int(OPTION, VALUE) nsoptions[NSOPTION_##OPTION].value.i = VALUE
+/** set an unsigned integer option in the default table */
+#define nsoption_set_uint(OPTION, VALUE) nsoptions[NSOPTION_##OPTION].value.u = VALUE
+
/** set a colour option in the default table */
#define nsoption_set_colour(OPTION, VALUE) nsoptions[NSOPTION_##OPTION].value.c = VALUE