Followup fix for integer wraparound in port allocator

Change iterator variable datatype to int
This commit is contained in:
Daniel P. Berrange 2013-01-17 19:15:57 +00:00
parent 56fd513458
commit 55599102b4

View File

@ -97,7 +97,7 @@ int virPortAllocatorAcquire(virPortAllocatorPtr pa,
unsigned short *port)
{
int ret = -1;
unsigned short i;
int i;
int fd = -1;
*port = 0;