diff --git a/sys/kernel/descrip.c b/sys/kernel/descrip.c index ec2eabc..42c59cd 100644 --- a/sys/kernel/descrip.c +++ b/sys/kernel/descrip.c @@ -56,7 +56,7 @@ if (td->o_files[i] == 0x0) { td->o_files[i] = (void*) fp; td->td_retval[0] = i; - ((fileDescriptor_t*) td->o_files[uap->fd])->dup++; + ((struct file*) td->o_files[uap->fd])->fd->dup++; fclose(td->o_files[uap->fd]); td->o_files[uap->fd] = 0; kprintf("FCNTL: %i, %i, 0x%X.", i, uap->fd, fp); @@ -328,9 +328,9 @@ } kprintf("DUP2.0: %i:%i [0x%X:0x%X]", from, to, td->o_files[from], td->o_files[to]); td->o_files[to] = td->o_files[from]; - ((fileDescriptor_t*) td->o_files[from])->dup++; + ((struct file*) td->o_files[from])->fd->dup++; - kprintf("DUP2.1: %i:%i <%i> [0x%X:0x%X]", from, to, ((fileDescriptor_t*) td->o_files[from])->dup, td->o_files[from], td->o_files[to]); + kprintf("DUP2.1: %i:%i <%i> [0x%X:0x%X]", from, to, ((struct file*) td->o_files[from])->fd->dup, td->o_files[from], td->o_files[to]); return (0x0); }