[virt-tools-list] [osinfo PATCH 3/3] Fix OSINFO_MEDIA_ERROR_INSUFFIENT_METADATA typo
Christophe Fergeau
cfergeau at redhat.com
Thu Dec 1 09:25:50 UTC 2011
This is an API change, but I don't think many application are
checking error code values of libosinfo errors so I'd say we can
do it a this point. A #define for the old symbolic name can be
added if we don't want to break the API.
---
osinfo/osinfo_media.c | 2 +-
osinfo/osinfo_media.h | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/osinfo/osinfo_media.c b/osinfo/osinfo_media.c
index 3694a9b..2366993 100644
--- a/osinfo/osinfo_media.c
+++ b/osinfo/osinfo_media.c
@@ -629,7 +629,7 @@ static void on_pvd_read (GObject *source,
if (is_str_empty(data->pvd.volume)) {
g_set_error(&error,
OSINFO_MEDIA_ERROR,
- OSINFO_MEDIA_ERROR_INSUFFIENT_METADATA,
+ OSINFO_MEDIA_ERROR_INSUFFICIENT_METADATA,
"Insufficient metadata on installation media");
goto ON_ERROR;
diff --git a/osinfo/osinfo_media.h b/osinfo/osinfo_media.h
index d5208a1..b6a0ee1 100644
--- a/osinfo/osinfo_media.h
+++ b/osinfo/osinfo_media.h
@@ -38,7 +38,7 @@ osinfo_media_error_quark (void) G_GNUC_CONST;
/**
* OsinfoMediaError:
* @OSINFO_MEDIA_ERROR_NO_DESCRIPTORS: No descriptors.
- * @OSINFO_MEDIA_ERROR_INSUFFIENT_METADATA: Not enough metadata.
+ * @OSINFO_MEDIA_ERROR_INSUFFICIENT_METADATA: Not enough metadata.
* @OSINFO_MEDIA_ERROR_NOT_BOOTABLE: Install media not bootable.
* @OSINFO_MEDIA_ERROR_NO_PVD: No Primary volume descriptor.
* @OSINFO_MEDIA_ERROR_NO_SVD: No supplementary volume descriptor.
@@ -50,7 +50,7 @@ typedef enum {
OSINFO_MEDIA_ERROR_NO_DESCRIPTORS,
OSINFO_MEDIA_ERROR_NO_PVD,
OSINFO_MEDIA_ERROR_NO_SVD,
- OSINFO_MEDIA_ERROR_INSUFFIENT_METADATA,
+ OSINFO_MEDIA_ERROR_INSUFFICIENT_METADATA,
OSINFO_MEDIA_ERROR_NOT_BOOTABLE
} OsinfoMediaError;
--
1.7.7.3
More information about the virt-tools-list
mailing list