X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Ffmt_compile.c;h=014733427dcd6261cded324b744e0cac125cdc7b;hb=e69044f7624abe5cb2cb796d528c0cc5f29515f7;hp=148d35c7636cff5dcf3674bf999f82375b332748;hpb=096cb902c659b224590c2989020d437721d8e9e5;p=mmh diff --git a/sbr/fmt_compile.c b/sbr/fmt_compile.c index 148d35c..0147334 100644 --- a/sbr/fmt_compile.c +++ b/sbr/fmt_compile.c @@ -264,7 +264,7 @@ static struct ftable functable[] = { } while (0) #define LV(type, value) do { NEW(type,0,0); fp->f_value = (value); } while (0) -#define LS(type, str) do { NEW(type,0,0); fp->f_text = (str); fp->f_flags |= FF_STRALLOC; } while (0) +#define LS(type, str) do { NEW(type,0,0); fp->f_text = getcpy(str); fp->f_flags |= FF_STRALLOC; } while (0) #define PUTCOMP(comp) do { NEW(FT_COMP,0,0); ADDC(comp); } while (0) #define PUTLIT(str) do { NEW(FT_LIT,0,0); fp->f_text = getcpy(str); fp->f_flags |= FF_STRALLOC; } while (0) @@ -877,7 +877,7 @@ fmt_findcomp(char *component) */ struct comp * -fmt_findcasecmp(char *component) +fmt_findcasecomp(char *component) { struct comp *cm; @@ -981,7 +981,7 @@ fmt_appendcomp(int bucket, char *component, char *text) static void free_comptable(void) { - int i; + unsigned int i; struct comp *cm, *cm2; for (i = 0; i < sizeof(wantcomp)/sizeof(wantcomp[0]); i++) {