aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@21a6bef8-4479-4f54-8f8d-0db94a2919ef>2001-05-18 20:54:06 +0000
committertradke <tradke@21a6bef8-4479-4f54-8f8d-0db94a2919ef>2001-05-18 20:54:06 +0000
commitdaf592f0e8580c9a48ebdc788c7ede2549ccf8d9 (patch)
treea83dba783a3d9803ee9dca0d8b14197ed4c285e1
parent1a861885c031c204b27f0dc5438a4eb7a29c36f1 (diff)
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
-rw-r--r--src/IO.cc2
-rw-r--r--src/IOProtos.h2
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));