From 295de711933f1f129aba91a80987b0bc12f91a7d Mon Sep 17 00:00:00 2001 From: David Smith Date: Mon, 3 Feb 2014 13:09:38 -0600 Subject: [PATCH] Compile fix for runtime/vma.c. * runtime/vma.c (_stp_vma_exec_cb): Add cast to avoid compiler error. --- runtime/vma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/vma.c b/runtime/vma.c index a29ff58c5..0a0f5f62d 100644 --- a/runtime/vma.c +++ b/runtime/vma.c @@ -130,7 +130,8 @@ static int _stp_vma_mmap_cb(struct stap_task_finder_target *tgt, { int i, res; struct _stp_module *module = NULL; - const char *name = (dentry != NULL) ? dentry->d_name.name : NULL; + const char *name = ((dentry != NULL) ? (char *)dentry->d_name.name + : NULL); if (path == NULL || *path == '\0') /* unknown? */ path = (char *)name; /* we'll copy this soon, in ..._add_vma_... */ -- 2.43.5