From d6b2f41432cb0d1b45e308e48dc5c660d575b256 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Mon, 22 Nov 2004 13:41:14 +0000 Subject: use a signed type if we're comparing the var to -1. fixes loading of the internal firmware. --- sys/dev/usb/if_atu.c | 5 ++--- 1 file 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 . 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; /* -- cgit v1.2.3