summaryrefslogtreecommitdiff
path: root/fd.c
diff options
context:
space:
mode:
Diffstat (limited to 'fd.c')
-rw-r--r--fd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fd.c b/fd.c
index b34f313..68f75e3 100644
--- a/fd.c
+++ b/fd.c
@@ -104,6 +104,6 @@ fd_incref(struct fd *fd)
acquire(&fd_table_lock);
if(fd->count < 1 || fd->type == FD_CLOSED)
panic("fd_reference");
- fd->count += 1;
+ fd->count++;
release(&fd_table_lock);
}