X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fmf.c;h=3134328b985a21d06890a6bcffe565923925f514;hp=69afff8aa12e9111b089cb57aadc960b7dc6a344;hb=10eff860a28b96582526eb739fd0a55441669938;hpb=db62cda50055368e5f4ac51df787053f70706c30 diff --git a/sbr/mf.c b/sbr/mf.c index 69afff8..3134328 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((size_t) (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) @@ -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 == '"')