diff options
author | 2016-01-09 13:36:11 +0000 | |
---|---|---|
committer | 2016-01-09 13:36:11 +0000 | |
commit | b8ee3ec3cccfc9934d22010d451ba4ad9cfa493a (patch) | |
tree | 1cdbbe0be7c7acab72eb0b1dbf51027bc3070c82 | |
parent | consistently use the desc ring pointers as guards for their dmamem. (diff) | |
download | wireguard-openbsd-b8ee3ec3cccfc9934d22010d451ba4ad9cfa493a.tar.xz wireguard-openbsd-b8ee3ec3cccfc9934d22010d451ba4ad9cfa493a.zip |
Make midi->tickets signed (sign is needed for arithmetics even if the
actual count is always positive). Found by David Coppa. Thanks.
-rw-r--r-- | usr.bin/sndiod/midi.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sndiod/midi.h b/usr.bin/sndiod/midi.h index 3c8e8eece50..8cfb664cee1 100644 --- a/usr.bin/sndiod/midi.h +++ b/usr.bin/sndiod/midi.h @@ -1,4 +1,4 @@ -/* $OpenBSD: midi.h,v 1.7 2015/11/22 16:42:22 ratchov Exp $ */ +/* $OpenBSD: midi.h,v 1.8 2016/01/09 13:36:11 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org> * @@ -73,7 +73,7 @@ struct midi { unsigned int len; /* expected ``msg'' length */ unsigned int txmask; /* list of ep we send to */ unsigned int self; /* equal (1 << index) */ - unsigned int tickets; /* max bytes we can process */ + int tickets; /* max bytes we can process */ struct abuf obuf; /* output buffer */ }; |