summaryrefslogtreecommitdiff
path: root/src/main/Banner.c
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-11-03 09:23:10 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-11-03 09:23:10 +0000
commitf56ab00e21d175ef62608342f185c5e7977be078 (patch)
tree1bfc0473e7f51b54d1b276af0efb3ebe41238377 /src/main/Banner.c
parent52b81606de9ddb65dd608424354a28a856a5daef (diff)
Changing various things pointed to by compiling with -Wall.
Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1129 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/Banner.c')
-rw-r--r--src/main/Banner.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/Banner.c b/src/main/Banner.c
index 82da9536..265455a6 100644
--- a/src/main/Banner.c
+++ b/src/main/Banner.c
@@ -17,10 +17,10 @@
#include "cctk_Banner.h"
#include "cctk_FortranString.h"
-static char *rcsis = "$Header$";
+static char *rcsid = "$Header$";
static int number_banners = 0;
-static const char **banner_strings = NULL;
+static char **banner_strings = NULL;
void CCTK_PrintBanners(void);
@@ -81,18 +81,18 @@ void CactusBanner(void)
void CCTK_RegisterBanner(const char *string)
{
const char **temp = NULL;
- const char *newstring;
+ char *newstring;
number_banners++;
/* Resize the array of banner strings */
if (number_banners == 1)
{
- banner_strings = (const char **)malloc( number_banners*sizeof(const char *));
+ banner_strings = (char **)malloc( number_banners*sizeof(char *));
temp = banner_strings;
}
else
{
- temp = realloc( banner_strings, number_banners*sizeof(const char *));
+ temp = (char **)realloc( banner_strings, number_banners*sizeof(char *));
if(temp)
{
@@ -107,7 +107,7 @@ void CCTK_RegisterBanner(const char *string)
/* If this was succesful, copy the data into the array */
if(temp)
{
- newstring = malloc((strlen(string)+1)*sizeof(const char));
+ newstring = (char *)malloc((strlen(string)+1)*sizeof(char));
if(newstring)
{
strcpy(newstring, string);