diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2010-07-10 12:32:46 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2010-07-10 12:32:46 +0000 |
commit | 33bd0b103f6c5e841dc3f43290a8923ceaca79f5 (patch) | |
tree | 71864de2b4fb883f5c5d153f4fbe1a35e96acadd /usr.bin/aucat | |
parent | 687fd088b74648eea65b572dbc533465231767f8 (diff) |
When a file is created, initialize its ``busy cycles'' counter to zero.
Diffstat (limited to 'usr.bin/aucat')
-rw-r--r-- | usr.bin/aucat/file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/aucat/file.c b/usr.bin/aucat/file.c index 83d0c75c70d..e1eefa8d8ae 100644 --- a/usr.bin/aucat/file.c +++ b/usr.bin/aucat/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.20 2010/07/06 20:06:35 ratchov Exp $ */ +/* $OpenBSD: file.c,v 1.21 2010/07/10 12:32:45 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -247,6 +247,7 @@ file_new(struct fileops *ops, char *name, unsigned nfds) f->ops = ops; f->name = name; f->state = 0; + f->cycles = 0; f->rproc = NULL; f->wproc = NULL; LIST_INSERT_HEAD(&file_list, f, entry); |