From c0f4bbb3083b56bf4f1e089a40ab059233b88495 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 6 Aug 2016 10:27:32 +0100 Subject: 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. --- test/nsoption.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'test/nsoption.c') 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); -- cgit v1.2.3