From faa50c09625c010c953a9dbc3fdef2376f1830e8 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 10 Apr 2009 09:16:37 +0000 Subject: [PATCH] From Santosh Gaikwad, warning fixes --- src/osgPlugins/ply/ply.h | 4 ++-- src/osgPlugins/ply/plyfile.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/osgPlugins/ply/ply.h b/src/osgPlugins/ply/ply.h index 1ae2c6afc..a79f3b3e3 100644 --- a/src/osgPlugins/ply/ply.h +++ b/src/osgPlugins/ply/ply.h @@ -69,7 +69,7 @@ extern "C" { typedef struct PlyProperty { /* description of a property */ - char *name; /* property name */ + const char *name; /* property name */ int external_type; /* file's data type */ int internal_type; /* program's data type */ int offset; /* offset bytes of prop in a struct */ @@ -150,7 +150,7 @@ extern PlyFile *ply_read(FILE *, int *, char ***); extern PlyFile *ply_open_for_reading( char *, int *, char ***, int *, float *); extern PlyProperty **ply_get_element_description(PlyFile *, char *, int*, int*); extern void ply_get_element_setup( PlyFile *, char *, int, PlyProperty *); -extern void ply_get_property(PlyFile *, char *, PlyProperty *); +extern void ply_get_property(PlyFile *, const char *, PlyProperty *); extern PlyOtherProp *ply_get_other_properties(PlyFile *, char *, int); extern void ply_get_element(PlyFile *, void *); extern char **ply_get_comments(PlyFile *, int *); diff --git a/src/osgPlugins/ply/plyfile.cpp b/src/osgPlugins/ply/plyfile.cpp index d1705622d..d4a07edb0 100644 --- a/src/osgPlugins/ply/plyfile.cpp +++ b/src/osgPlugins/ply/plyfile.cpp @@ -1059,7 +1059,7 @@ Entry: void ply_get_property( PlyFile *plyfile, - char *elem_name, + const char *elem_name, PlyProperty *prop ) {