libmodulemd/0001-Fix-accidental-ABI-break.patch
Stephen Gallagher 49160525f2
Fix accidental ABI break
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2019-04-03 08:57:29 -04:00

38 lines
1.3 KiB
Diff

From bf5c2f76f6d4fe8510e8a2e1b24db72c5b53c846 Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh@redhat.com>
Date: Wed, 3 Apr 2019 08:54:19 -0400
Subject: [PATCH] Fix accidental ABI break
When we added the .equals() functions for ModulemdDefaults and
ModulemdComponent, we did not decrease the padding value, which
resulted in the structure being enlarged.
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
---
modulemd/v2/include/modulemd-2.0/modulemd-defaults.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modulemd/v2/include/modulemd-2.0/modulemd-defaults.h b/modulemd/v2/include/modulemd-2.0/modulemd-defaults.h
index 4794c2f65ea1990f5dc36c80df0804e0320b7730..5da77fb2aead0f8b2c5e8d9dd667a4aaca526d52 100644
--- a/modulemd/v2/include/modulemd-2.0/modulemd-defaults.h
+++ b/modulemd/v2/include/modulemd-2.0/modulemd-defaults.h
@@ -63,13 +63,13 @@ struct _ModulemdDefaultsClass
guint64 (*get_mdversion) (ModulemdDefaults *self);
gboolean (*equals) (ModulemdDefaults *self_1, ModulemdDefaults *self_2);
- /* Padding to allow adding up to 10 new virtual functions without
+ /* Padding to allow adding up to 9 new virtual functions without
* breaking ABI. */
- gpointer padding[10];
+ gpointer padding[9];
};
/**
* modulemd_defaults_new:
--
2.21.0