Change-Id: I16c69488fea2acdd9e1fff1eba903ae4c40a3522
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
pos = length;
/* search the begin of the line */
- while ((end - buf) != pos) {
+ while ((size_t)(end - buf) != pos) {
/* dealing utf8 */
colno += ((*end & '\xc0') != '\x80');
/* dealing with lines */
}
/* search the end of the line */
- while ((end - buf) < length && *end != '\n')
+ while (((size_t)(end - buf) < length) && (*end != '\n'))
end++;
/* record computed values */
}
/* sort the keys and return their count */
+#ifdef SORT_KEYS
static int sortkeys()
{
struct key *key = keys, **array;
return count;
}
+#endif
/*======================================================================*/