X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fmf.c;h=7c6f004c0a5f72d960ebd4a5b5a185c4ad867c64;hp=6338a6eff711aa3ad056e43af3e6625a74d1c63b;hb=b78007de9802005825390bee71dfce2306b42519;hpb=fdc012cb43b5fc0baa6f4470b47be397bfc3f21b diff --git a/sbr/mf.c b/sbr/mf.c index 6338a6e..7c6f004 100644 --- a/sbr/mf.c +++ b/sbr/mf.c @@ -10,6 +10,9 @@ #include #include #include +#include +#include +#include /* ** static prototypes @@ -27,7 +30,7 @@ static int my_lex(char *); static char * getcpy(char *s) { - register char *p; + char *p; if (!s) { /* @@ -39,7 +42,7 @@ getcpy(char *s) for(;;) pause(); } - p = mh_xmalloc((size_t) (strlen(s) + 2)); + p = mh_xcalloc(strlen(s) + 2, sizeof(char)); strcpy(p, s); return p; } @@ -161,8 +164,8 @@ static struct adrx adrxs2; struct adrx * getadrx(char *addrs) { - register char *bp; - register struct adrx *adrxp = &adrxs2; + char *bp; + struct adrx *adrxp = &adrxs2; if (pers) free(pers); @@ -418,7 +421,7 @@ phrase(char *buffer) static int route_addr(char *buffer) { - register char *pp = cp; + char *pp = cp; if (my_lex(buffer) == LX_AT) { if (route(buffer) == NOTOK) @@ -539,7 +542,7 @@ route(char *buffer) default: sprintf(err, "no at-sign found for next domain in route (%s)", - buffer); + buffer); } break; } @@ -567,8 +570,8 @@ my_lex(char *buffer) { /* buffer should be at least BUFSIZ bytes long */ int i; - register unsigned char c; - register char *bp; + unsigned char c; + char *bp; /* ** Add C to the buffer bp. After use of this macro *bp is guaranteed @@ -708,7 +711,7 @@ char * legal_person(char *p) { int i; - register char *cp; + char *cp; static char buffer[BUFSIZ]; if (*p == '"')