]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
qemu: Adjust the prototype to match the function
authorJohn Ferlan <jferlan@redhat.com>
Tue, 14 Apr 2015 11:28:57 +0000 (07:28 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 14 Apr 2015 15:18:28 +0000 (11:18 -0400)
Changing the prototype to not have "int *index" since we'll soon be
disallowing index as a name. Curiously the original commit (a4504ac)
for the function used 'int idx' in the function - so they didn't match.
Now they do.

src/qemu/qemu_conf.h

index cb01fb688b619149573eb0ccc20cebd41fef1a6b..4b02d1980948d4cea4089d89142c08ba498ce505 100644 (file)
@@ -288,7 +288,7 @@ typedef qemuSharedDeviceEntry *qemuSharedDeviceEntryPtr;
 
 bool qemuSharedDeviceEntryDomainExists(qemuSharedDeviceEntryPtr entry,
                                        const char *name,
-                                       int *index)
+                                       int *idx)
     ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
 
 char *qemuGetSharedDeviceKey(const char *disk_path)