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;
*/
#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) ;
/*
/*
** prototypes
*/
-struct format *fmt_scan (struct format *, char *, int, int *);
-char *new_fs (char *, char *, char *);
-int fmt_compile (char *, struct format **);
+struct format *fmt_scan(struct format *, char *, int, int *);
+int fmt_compile(char *, struct format **);
+char *formataddr(char *, char *);