From daf592f0e8580c9a48ebdc788c7ede2549ccf8d9 Mon Sep 17 00:00:00 2001 From: tradke Date: Fri, 18 May 2001 20:54:06 +0000 Subject: Pass a 'const void *data' pointer into IOwriteAttribute(). git-svn-id: http://svn.cactuscode.org/arrangements/CactusExternal/FlexIO/trunk@16 21a6bef8-4479-4f54-8f8d-0db94a2919ef --- src/IO.cc | 2 +- src/IOProtos.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/IO.cc b/src/IO.cc index a6c8eab..0287a9d 100644 --- a/src/IO.cc +++ b/src/IO.cc @@ -302,7 +302,7 @@ int IOnAnnotations(IOFile deviceID){ return dev->nAnnotations(); } -int IOwriteAttribute(IOFile deviceID,char *name,int type,Long length,void *data){ +int IOwriteAttribute(IOFile deviceID,char *name,int type,Long length,const void *data){ IObase *dev=(IObase*)(deviceID); IObase::DataType typeID = IObase::Int2DataType(type); return dev->writeAttribute(name,typeID,length,data); diff --git a/src/IOProtos.h b/src/IOProtos.h index 9d310b7..abbf36b 100644 --- a/src/IOProtos.h +++ b/src/IOProtos.h @@ -52,7 +52,7 @@ int IOreadAnnotation PROTO((IOFile deviceID,int idx,char *annotation,int maxsize int IOreadAnnotationInfo PROTO((IOFile deviceID,int idx,int *size)); int IOnAnnotations PROTO((IOFile deviceID)); -int IOwriteAttribute PROTO((IOFile deviceID,char *name,int type,Long length,void *data)); +int IOwriteAttribute PROTO((IOFile deviceID,char *name,int type,Long length,const void *data)); int IOreadIndexedAttributeInfo PROTO((IOFile deviceID,int number, char *name,int *type,Long *nelem,int maxnamelen)); int IOreadAttributeInfo PROTO((IOFile deviceID,char *name,int *type,Long *nelem)); -- cgit v1.2.3