diff options
-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*); }; |