aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xg_private.h
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-12-21 13:58:51 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-12-21 13:58:51 +0000
commitf9396bbfe805c16944fec66ff0c6acdf87ba2ef2 (patch)
treec8a71a47d746009969a6d588529d28658626c9b2 /tools/libxc/xg_private.h
parent015f6a2832c6304c9eccdbbe09ddb71efb2144d7 (diff)
downloadxen-f9396bbfe805c16944fec66ff0c6acdf87ba2ef2.tar.gz
xen-f9396bbfe805c16944fec66ff0c6acdf87ba2ef2.tar.bz2
xen-f9396bbfe805c16944fec66ff0c6acdf87ba2ef2.zip
Improve consistency of type-attribute usage (volatile/const).
From: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/libxc/xg_private.h')
-rw-r--r--tools/libxc/xg_private.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/libxc/xg_private.h b/tools/libxc/xg_private.h
index 5533364f4a..4b0f5c9124 100644
--- a/tools/libxc/xg_private.h
+++ b/tools/libxc/xg_private.h
@@ -146,7 +146,7 @@ struct domain_setup_info
* You should use the xen_elfnote_* accessors below in order to
* pickup the correct one and retain backwards compatibility.
*/
- void *__elfnote_section, *__elfnote_section_end;
+ const void *__elfnote_section, *__elfnote_section_end;
const char *__xen_guest_string;
};
@@ -162,14 +162,14 @@ typedef int (*loadimagefunc)(const char *image, unsigned long image_size,
* in the note is returned and *defined is set to non-zero. If no such
* note is found then *defined is set to 0 and 0 is returned.
*/
-extern unsigned long long xen_elfnote_numeric(struct domain_setup_info *dsi,
+extern unsigned long long xen_elfnote_numeric(const struct domain_setup_info *dsi,
int type, int *defined);
/*
* If an ELF note of the given type is found then the string contained
* in the value is returned, otherwise NULL is returned.
*/
-extern const char * xen_elfnote_string(struct domain_setup_info *dsi,
+extern const char * xen_elfnote_string(const struct domain_setup_info *dsi,
int type);
struct load_funcs