Fix some signed/unsigned issues

This commit is contained in:
Kevin Lange 2011-11-18 00:00:54 -06:00
parent 4697dd4c06
commit 31c07ba434
3 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ serial_send(char out) {
void
serial_string(char * out) {
for (int i = 0; i < strlen(out); ++i) {
for (uint32_t i = 0; i < strlen(out); ++i) {
serial_send(out[i]);
}
}

View File

@ -44,7 +44,7 @@ static int read(int fd, char * ptr, int len) {
IRQ_ON;
kgets(ptr, len);
IRQ_OFF;
if (strlen(ptr) < len) {
if (strlen(ptr) < (uint32_t)len) {
int j = strlen(ptr);
ptr[j] = '\n';
ptr[j+1] = '\0';

View File

@ -117,7 +117,7 @@ fork() {
new_task->heap = current_task->heap;
new_task->heap_a = current_task->heap_a;
new_task->image_size = current_task->image_size;
for (uint32_t i = 0; i <= strlen(current_task->wd); ++i) {
for (uint32_t i = 0; i <= strlen((const char *)current_task->wd); ++i) {
new_task->wd[i] = current_task->wd[i];
}