From 590fc4911371a3eab9decefca6ebdfca286723db Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Tue, 23 Apr 2002 04:54:43 +0000 Subject: [PATCH] Splint cleanups, including const change. svn path=/trunk/yasm/; revision=605 --- libyasm/objfmt.h | 4 ++-- src/objfmt.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libyasm/objfmt.h b/libyasm/objfmt.h index d3155661..dde47117 100644 --- a/libyasm/objfmt.h +++ b/libyasm/objfmt.h @@ -70,7 +70,7 @@ struct objfmt { * be the section name. Returns NULL if something's wrong, otherwise * returns the new section. */ - /*@dependent@*/ /*@null@*/ section * + /*@observer@*/ /*@null@*/ section * (*sections_switch)(sectionhead *headp, valparamhead *valparams, /*@null@*/ valparamhead *objext_valparams); @@ -89,7 +89,7 @@ struct objfmt { * is an enum not a bitmask). */ /*@only@*/ void * - (*declare_data_copy)(SymVisibility vis, /*@only@*/ void *data); + (*declare_data_copy)(SymVisibility vis, const void *data); void (*declare_data_delete)(SymVisibility vis, /*@only@*/ void *data); void (*declare_data_print)(FILE *f, SymVisibility vis, /*@null@*/ void *data); diff --git a/src/objfmt.h b/src/objfmt.h index d3155661..dde47117 100644 --- a/src/objfmt.h +++ b/src/objfmt.h @@ -70,7 +70,7 @@ struct objfmt { * be the section name. Returns NULL if something's wrong, otherwise * returns the new section. */ - /*@dependent@*/ /*@null@*/ section * + /*@observer@*/ /*@null@*/ section * (*sections_switch)(sectionhead *headp, valparamhead *valparams, /*@null@*/ valparamhead *objext_valparams); @@ -89,7 +89,7 @@ struct objfmt { * is an enum not a bitmask). */ /*@only@*/ void * - (*declare_data_copy)(SymVisibility vis, /*@only@*/ void *data); + (*declare_data_copy)(SymVisibility vis, const void *data); void (*declare_data_delete)(SymVisibility vis, /*@only@*/ void *data); void (*declare_data_print)(FILE *f, SymVisibility vis, /*@null@*/ void *data); -- 2.40.0