patch by Guido Günther
Daniel
+Fri Oct 17 11:16:30 CEST 2008 Daniel Veillard <veillard@redhat.com>
+
+ * src/domain_conf.c: fix virDiskNameToBusDeviceIndex() to allow 0
+ patch by Guido Günther
+
Thu Oct 16 19:17:25 +0200 Jim Meyering <meyering@redhat.com>
build: when po-check fails, say why and suggest a fix
* @param devIdx parsed device number
* @return 0 on success, -1 on failure
*/
-int virDiskNameToBusDeviceIndex(virDomainDiskDefPtr disk,
+int virDiskNameToBusDeviceIndex(const virDomainDiskDefPtr disk,
int *busIdx,
int *devIdx) {
int idx = virDiskNameToIndex(disk->dst);
- if (idx < 1)
+ if (idx < 0)
return -1;
switch (disk->bus) {