X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;ds=sidebyside;f=sbr%2Ffmt_scan.c;h=0616d17dfdccf91f385555822a81a56251eb9bf7;hb=2abb9a7cfb0930e27062088734d306e7d78e4cc2;hp=8414829b833347cd2dadff2ea0918e9eea0942ab;hpb=75f03a965d10d34099b13799e6fe0ed43f56e257;p=mmh diff --git a/sbr/fmt_scan.c b/sbr/fmt_scan.c index 8414829..0616d17 100644 --- a/sbr/fmt_scan.c +++ b/sbr/fmt_scan.c @@ -14,6 +14,7 @@ #include #include #include +#include #ifdef HAVE_SYS_TIME_H # include @@ -25,8 +26,6 @@ # include #endif -extern char *formataddr(); /* hook for custom address formatting */ - extern int fmt_norm; /* defined in sbr/fmt_def.c = AD_NAME */ struct mailname fmt_mnull; @@ -679,7 +678,7 @@ fmt_scan(struct format *format, char *scanl, int width, int *dat) } else str = mn->m_text; break; - } + } } } break; @@ -783,9 +782,10 @@ fmt_scan(struct format *format, char *scanl, int width, int *dat) while( (c = *sp++) && cp < ep) *cp++ = c; while (len > wid) { - /* try to break at a comma; failing that, - * break at a space. - */ + /* + ** try to break at a comma; failing that, + ** break at a space. + */ lastb = 0; sp = lp + wid; while (sp > lp && (c = *--sp) != ',') { if (! lastb && isspace(c))