aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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));