diff mbox

gbsim: Fix greybus protocol -> protocol_id renaming issue

Message ID 1415044052-2438-1-git-send-email-john.stultz@linaro.org
State New
Headers show

Commit Message

John Stultz Nov. 3, 2014, 7:47 p.m. UTC
Trying to build gbsim with the latest greybus, I'm hitting the
following build issue:

manifest.c: In function ‘identify_descriptor’:
manifest.c:77:32: error: ‘struct greybus_descriptor_cport’ has no
member named ‘protocol’

Related to the fact that the greybus cport protocol field is now
named protocol_id. This patch fixes it by renaming the usage.

Signed-off-by: John Stultz <john.stultz@linaro.org>
---
 manifest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/manifest.c b/manifest.c
index 9d3d2b2..0de291f 100644
--- a/manifest.c
+++ b/manifest.c
@@ -74,7 +74,7 @@  static int identify_descriptor(struct greybus_descriptor *desc, size_t size)
 		}
 		cport = malloc(sizeof(struct gbsim_cport));
 		cport->id = desc->cport.id;
-		cport->protocol = desc->cport.protocol;
+		cport->protocol = desc->cport.protocol_id;
 		TAILQ_INSERT_TAIL(&info.cports, cport, cnode);
 		break;
 	case GREYBUS_TYPE_CLASS: