diff options
author | knarf <knarf@edbb7e70-9571-45d5-a481-0a560a9b4751> | 2009-01-26 20:31:03 +0000 |
---|---|---|
committer | knarf <knarf@edbb7e70-9571-45d5-a481-0a560a9b4751> | 2009-01-26 20:31:03 +0000 |
commit | cebade31da85079ee1c9087e1e227861ec8269bc (patch) | |
tree | 59bc483f3f3f2142d2613e95e1302892e32e34b1 | |
parent | 6b72048c251e0e01720572c64e2a6c44c724098e (diff) |
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
-rw-r--r-- | src/Slicing.c | 2 | ||||
-rw-r--r-- | 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*); }; |