[core] Fix wrapping of tftp block index
authorDavid Edmondson <dme@dme.org>
Thu, 22 Jan 2009 17:19:21 +0000 (12:19 -0500)
committerMarty Connor <mdc@etherboot.org>
Thu, 22 Jan 2009 17:19:21 +0000 (12:19 -0500)
commitdf8d6537d7947cbe6fd8176b19e38fd45eef7313
tree55210584a030603f998b669cd213795973508abc
parenta4eb25f0642939060a20ed67917ab34783a5f110
[core] Fix wrapping of tftp block index

Handle wrapping of the tftp block index correctly by ensuring that we
compare unsigned shorts when examining block index numbers.

Signed-off-by: Marty Connor <mdc@etherboot.org>
src/core/nic.c