commit - abe89edb698f9d165b74d1fe146b13fade5b52bd
commit + 03e70dd4d41906645718ee5b780d7e948404f292
blob - 5d1283460327c8a36e76c5f8ed29b5fd573a5ce8
blob + 072c326702282d6c37c250bb57b593f5ce07776f
--- gotwebd/gotweb.c
+++ gotwebd/gotweb.c
if (error)
return error;
- for (el_cnt = 0; el_cnt < QSELEM__MAX; el_cnt++) {
+ for (el_cnt = 0; el_cnt < nitems(querystring_keys); el_cnt++) {
if (strcmp(key, querystring_keys[el_cnt].name) != 0)
continue;
if ((*qs)->page < 0)
(*qs)->page = 0;
break;
- default:
- break;
}
+
+ /* entry found */
+ break;
}
done:
return error;
blob - 87f3ab6f87b6831ca7b065a759bc71c251bdcf2d
blob + f2e1d1c756973046a69181f403f1187c8b7432cc
--- gotwebd/gotwebd.h
+++ gotwebd/gotwebd.h
INDEX_PAGE,
PATH,
PAGE,
- QSELEM__MAX,
};
enum query_actions {