projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add config.o and version.o to libmh.a
[mmh]
/
uip
/
rcvdist.c
diff --git
a/uip/rcvdist.c
b/uip/rcvdist.c
index
4027ea2
..
1337c89
100644
(file)
--- a/
uip/rcvdist.c
+++ b/
uip/rcvdist.c
@@
-156,10
+156,10
@@
static char *addrcomps[] = {
static void
rcvdistout(FILE *inb, char *form, char *addrs)
{
static void
rcvdistout(FILE *inb, char *form, char *addrs)
{
- register int char_read = 0, format_len, i, state;
- register char *tmpbuf, **nxtbuf, **ap;
+ int char_read = 0, format_len, i, state;
+ char *tmpbuf, **nxtbuf, **ap;
char *cp, *scanl, name[NAMESZ];
char *cp, *scanl, name[NAMESZ];
- register struct comp *cptr, **savecomp;
+ struct comp *cptr, **savecomp;
FILE *out;
if (!(out = fopen(drft, "w"))) {
FILE *out;
if (!(out = fopen(drft, "w"))) {
@@
-171,11
+171,11
@@
rcvdistout(FILE *inb, char *form, char *addrs)
format_len = strlen(cp);
ncomps = fmt_compile(cp, &fmt) + 1;
if (!(nxtbuf = compbuffers =
format_len = strlen(cp);
ncomps = fmt_compile(cp, &fmt) + 1;
if (!(nxtbuf = compbuffers =
- (char **) calloc((size_t) ncomps, sizeof(char *)))) {
+ (char **) mh_xcalloc((size_t) ncomps, sizeof(char *)))) {
adios(EX_OSERR, NULL, "unable to allocate component buffers");
}
if (!(savecomp = used_buf =
adios(EX_OSERR, NULL, "unable to allocate component buffers");
}
if (!(savecomp = used_buf =
- (struct comp **) calloc((size_t) (ncomps + 1),
+ (struct comp **) mh_xcalloc((size_t) (ncomps + 1),
sizeof(struct comp *)))) {
adios(EX_OSERR, NULL, "unable to allocate component buffer stack");
}
sizeof(struct comp *)))) {
adios(EX_OSERR, NULL, "unable to allocate component buffer stack");
}