diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2004-11-22 13:41:14 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2004-11-22 13:41:14 +0000 |
commit | d6b2f41432cb0d1b45e308e48dc5c660d575b256 (patch) | |
tree | d16499dda748f8d0c2bd43ce417f44890ff73782 | |
parent | 98e5ac74610c33077e791547c7cd59f55387587b (diff) |
use a signed type if we're comparing the var to -1. fixes loading of the
internal firmware.
-rw-r--r-- | sys/dev/usb/if_atu.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/usb/if_atu.c b/sys/dev/usb/if_atu.c index ad6d3eb4939..161e1a9d797 100644 --- a/sys/dev/usb/if_atu.c +++ b/sys/dev/usb/if_atu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_atu.c,v 1.22 2004/11/22 08:14:01 deraadt Exp $ */ +/* $OpenBSD: if_atu.c,v 1.23 2004/11/22 13:41:13 dlg Exp $ */ /* * Copyright (c) 2003, 2004 * Daan Vreeken <Danovitsch@Vitsch.net>. All rights reserved. @@ -960,8 +960,7 @@ int atu_upload_internal_firmware(struct atu_softc *sc) { u_char state, *ptr = NULL, *firm = NULL, status[6]; - int block_size, block = 0, err; - size_t bytes_left = 0; + int bytes_left = 0, block_size, block = 0, err; char *name = NULL; /* |