mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-10-20 11:33:43 +03:00
Move declarations before statements
Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
@@ -285,6 +285,7 @@ virshNodeDeviceListCollect(vshControl *ctl,
|
||||
char **caps = NULL;
|
||||
int ncaps = 0;
|
||||
bool match = false;
|
||||
size_t j, k;
|
||||
|
||||
device = list->devices[i];
|
||||
|
||||
@@ -305,7 +306,6 @@ virshNodeDeviceListCollect(vshControl *ctl,
|
||||
/* Check if the device's capability matches with provided
|
||||
* capabilities.
|
||||
*/
|
||||
size_t j, k;
|
||||
for (j = 0; j < ncaps; j++) {
|
||||
for (k = 0; k < ncapnames; k++) {
|
||||
if (STREQ(caps[j], capnames[k])) {
|
||||
|
Reference in New Issue
Block a user