diff options
author | Vincent Sanders <vince@kyllikki.org> | 2016-08-06 10:27:32 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2016-08-06 10:27:32 +0100 |
commit | c0f4bbb3083b56bf4f1e089a40ab059233b88495 (patch) | |
tree | 744ffbe8561c00bff877e1b260e400a72842fdf4 /test/nsoption.c | |
parent | 40ae120360a956daa6e29260d0a4f584632f212d (diff) | |
download | netsurf-c0f4bbb3083b56bf4f1e089a40ab059233b88495.tar.gz netsurf-c0f4bbb3083b56bf4f1e089a40ab059233b88495.tar.bz2 |
remove erroneous parameter check to nsoption_snoptionf
The API check and bounds check for option indexes was from an unsigned
enum so checking for negative numbers was causing "comparison is always
false" errors in compilation.
Diffstat (limited to 'test/nsoption.c')
-rw-r--r-- | test/nsoption.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/test/nsoption.c b/test/nsoption.c index de0530e8d..76cfeaf0b 100644 --- a/test/nsoption.c +++ b/test/nsoption.c @@ -615,8 +615,6 @@ END_TEST START_TEST(nsoption_api_snoptionf_param_test) { int ret; - ret = nsoption_snoptionf(NULL, 0, -1, ""); - ck_assert_int_eq(ret, -1); ret = nsoption_snoptionf(NULL, 0, NSOPTION_LISTEND, ""); ck_assert_int_eq(ret, -1); |