diff options
author | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2011-11-23 09:13:48 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2011-11-23 09:13:48 +0000 |
commit | c69c9c84e0341b701d9966fea8ce54d4e017bbb7 (patch) | |
tree | 2ea0b12abf9dd3483246423752239b88c6d7942e /buspirate_spi.c | |
parent | 8ca4255d7968dbf6301367074cc7267d22a25658 (diff) | |
download | flashrom-c69c9c84e0341b701d9966fea8ce54d4e017bbb7.tar.gz flashrom-c69c9c84e0341b701d9966fea8ce54d4e017bbb7.tar.bz2 flashrom-c69c9c84e0341b701d9966fea8ce54d4e017bbb7.zip |
Unsignify lengths and addresses in chip functions and structs
Push those changes forward where needed to prevent new sign
conversion warnings where possible.
Corresponding to flashrom svn r1470.
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'buspirate_spi.c')
-rw-r--r-- | buspirate_spi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/buspirate_spi.c b/buspirate_spi.c index a556185d..fd06b598 100644 --- a/buspirate_spi.c +++ b/buspirate_spi.c @@ -295,7 +295,8 @@ static int buspirate_spi_send_command(unsigned int writecnt, unsigned int readcn const unsigned char *writearr, unsigned char *readarr) { static unsigned char *buf = NULL; - int i = 0, ret = 0; + unsigned int i = 0; + int ret = 0; if (writecnt > 16 || readcnt > 16 || (readcnt + writecnt) > 16) return SPI_INVALID_LENGTH; |