From cebade31da85079ee1c9087e1e227861ec8269bc Mon Sep 17 00:00:00 2001 From: knarf Date: Mon, 26 Jan 2009 20:31:03 +0000 Subject: add const to slicing->name to suppress warning git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/CoordGauge/trunk@68 edbb7e70-9571-45d5-a481-0a560a9b4751 --- src/Slicing.c | 2 +- src/Slicing.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Slicing.c b/src/Slicing.c index 18b4c23..3f5d834 100644 --- a/src/Slicing.c +++ b/src/Slicing.c @@ -93,7 +93,7 @@ int Einstein_RegisterSlicing(const char *slice_name) /* Initialize the Einstein_slicing structure */ /* we know the slicing name */ - new_slicing->name = (char *)slice_name; + new_slicing->name = slice_name; /* Function pointer , evaluates if to perform this slicings, allowing for iteration checks, gridfunction behavior, etc. Will be set by diff --git a/src/Slicing.h b/src/Slicing.h index eb0cf26..c4afa34 100644 --- a/src/Slicing.h +++ b/src/Slicing.h @@ -29,7 +29,7 @@ extern "C" { #define SLICING_NO -1 struct Einstein_slicing { - char *name; + const char *name; int param_active; int (*timetoslice)(cGH*); }; -- cgit v1.2.3