X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=h%2Ffmt_scan.h;h=d7f43af0d4452c37cb6998fc0bcd77b49105b394;hp=96acd562dc5d075ba677205bcde0e9c01d24a551;hb=88b2142594d5ea1e8385dae5eca81eed1018c555;hpb=714b5c530ece27ea2835a313013f5b770163403c diff --git a/h/fmt_scan.h b/h/fmt_scan.h index 96acd56..d7f43af 100644 --- a/h/fmt_scan.h +++ b/h/fmt_scan.h @@ -16,7 +16,7 @@ struct comp { char *c_text; /* component text (if found) */ struct comp *c_next; /* hash chain linkage */ short c_flags; /* misc. flags (from fmt_scan) */ - short c_type; /* type info (from fmt_compile) */ + short c_type; /* type info (from fmt_compile) */ union { struct tws *c_u_tws; struct mailname *c_u_mn; @@ -59,7 +59,7 @@ extern struct comp *wantcomp[128]; */ #define FINDCOMP(comp,name) \ for (comp = wantcomp[CHASH(name)]; \ - comp && strcmp(comp->c_name,name); \ + comp && strcmp(comp->c_name,name)!=0; \ comp = comp->c_next) ; /* @@ -88,5 +88,5 @@ struct format { ** prototypes */ struct format *fmt_scan(struct format *, char *, int, int *); -char *new_fs(char *, char *, char *); int fmt_compile(char *, struct format **); +char *formataddr(char *, char *);