From 6f2b626d2882c2b9df5039b324c4167be3d74f28 Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 16 Jul 2006 01:52:22 +0000 Subject: remove non-idiomatic increment/decrement --- fd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fd.c') 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); } -- cgit v1.2.3