[libvirt] [PATCH 01/32] Convert 'int i' to 'size_t i' in daemon/ files

Michal Privoznik mprivozn at redhat.com
Wed Jul 10 07:43:13 UTC 2013


On 09.07.2013 20:50, Laine Stump wrote:
> On 07/08/2013 10:21 AM, Daniel P. Berrange wrote:
>> From: "Daniel P. Berrange" <berrange at redhat.com>
>>
>> Convert the type of loop iterators named 'i', 'j', k',
>> 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or
>> 'unsigned int', also santizing 'ii', 'jj', 'kk' to use
>> the normal 'i', 'j', 'k' naming
> 
> Sigh. I actually greatly prefer using ii because a variable named "i" or
> "j" is impossible to search for. I guess I'll just live with it though...
> 

If you use vim, you can easily search for 'i':

/\<i\>

or just move the cursor over the variable and press *.

Michal




More information about the libvir-list mailing list