avoid const string warnings steming from writeable-string

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14702 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-03-31 00:08:58 +00:00
parent 21b6751d15
commit 6d7b7f51f7

View File

@@ -41,7 +41,7 @@ FILE *headerfile, *codefile, *logfile;
static const char *orig_filename; static const char *orig_filename;
static char *header; static char *header;
static char *headerbase = STEM; static char *headerbase;
/* /*
* list of all IMPORTs * list of all IMPORTs
@@ -76,6 +76,8 @@ init_generate (const char *filename, const char *base)
orig_filename = filename; orig_filename = filename;
if(base) if(base)
asprintf(&headerbase, "%s", base); asprintf(&headerbase, "%s", base);
else
headerbase = strdup(STEM);
asprintf(&header, "%s.h", headerbase); asprintf(&header, "%s.h", headerbase);
headerfile = fopen (header, "w"); headerfile = fopen (header, "w");
if (headerfile == NULL) if (headerfile == NULL)
@@ -288,7 +290,7 @@ define_asn1 (int level, Type *t)
} }
static void static void
define_type (int level, char *name, Type *t, int typedefp) define_type (int level, const char *name, Type *t, int typedefp)
{ {
switch (t->type) { switch (t->type) {
case TType: case TType: