diff --git a/src/log.c b/src/log.c index bb0d79c..d6c2771 100644 --- a/src/log.c +++ b/src/log.c @@ -199,7 +199,7 @@ send_stored_logs(void) int level; - int i; + size_t i; for (i = 0; i != vector_length(log_message_storage); ++i) { string = vector_getentry(log_message_storage, i, NULL); diff --git a/src/reqs.c b/src/reqs.c index c58c25d..be1ddc7 100644 --- a/src/reqs.c +++ b/src/reqs.c @@ -117,7 +117,7 @@ add_connect_port_allowed(int port) static int check_allowed_connect_ports(int port) { - ssize_t i; + size_t i; int *data; /* diff --git a/src/vector.c b/src/vector.c index e90a3f2..8a96f70 100644 --- a/src/vector.c +++ b/src/vector.c @@ -180,7 +180,7 @@ vector_getentry(vector_t vector, size_t pos, size_t* size) struct vectorentry_s *ptr; size_t loc; - if (!vector || pos < 0 || pos >= vector->num_entries) + if (!vector || pos >= vector->num_entries) return NULL; loc = 0;