Commit 7c4caa67 authored by Guillem Jover's avatar Guillem Jover

Fix comparison between signed and unsigned integer compiler warnings

parent 30349f89
......@@ -135,7 +135,7 @@ heapsort(vbase, nmemb, size, compar)
size_t nmemb, size;
int (*compar)(const void *, const void *);
{
int cnt, i, j, l;
size_t cnt, i, j, l;
char tmp, *tmp1, *tmp2;
char *base, *k, *p, *t;
......
......@@ -100,7 +100,8 @@ __fdnlist(fd, list)
int fd;
struct nlist *list;
{
int n = -1, i;
size_t i;
int n = -1;
for (i = 0; i < sizeof(nlist_fn) / sizeof(nlist_fn[0]); i++) {
n = (nlist_fn[i].fn)(fd, list);
......
......@@ -175,7 +175,7 @@ r_sort_a(const u_char **a, int n, int i, const u_char *tr, u_int endch)
* character at position i, move on to the next
* character.
*/
if (nc == 1 && count[bmin] == n) {
if (nc == 1 && count[bmin] == (u_int)n) {
push(a, n, i+1);
nc = count[bmin] = 0;
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment