Deleted Added
full compact
8c8
< *
---
> *
12c12
< *
---
> *
16c16
< *
---
> *
20c20
< *
---
> *
24c24
< *
---
> *
30c30
< #ident "@(#)rpc_cout.c 1.14 93/07/05 SMI"
---
> #ident "@(#)rpc_cout.c 1.14 93/07/05 SMI"
32d31
< #ifndef lint
33a33
> #ifndef lint
36,37d35
< static const char rcsid[] =
< "$FreeBSD: head/usr.bin/rpcgen/rpc_cout.c 99979 2002-07-14 17:54:00Z alfred $";
39a38,40
> #include <sys/cdefs.h>
> __FBSDID("$FreeBSD: head/usr.bin/rpcgen/rpc_cout.c 100441 2002-07-21 12:55:04Z charnier $");
>
44d44
< #include <err.h>
101c101
< default:
---
> default:
361,362c361,362
< object = alloc(strlen(def->def_name) + strlen(format) +
< strlen(cs->name) + 1);
---
> object = xmalloc(strlen(def->def_name) +
> strlen(format) + strlen(cs->name) + 1);
380,381c380,381
< object = alloc(strlen(def->def_name) + strlen(format) +
< strlen(dflt->name) + 1);
---
> object = xmalloc(strlen(def->def_name) +
> strlen(format) + strlen(dflt->name) + 1);
456,457c456,458
< if (sizestr == NULL)
< sizestr = strdup(ptemp);
---
> if (sizestr == NULL) {
> sizestr = xstrdup(ptemp);
> }
459c460
< sizestr = realloc(sizestr,
---
> sizestr = xrealloc(sizestr,
462,465d462
< if (sizestr == NULL){
< warnx("fatal error: no memory");
< crash();
< };
756,758c753
< ptr = (char *)malloc(strlen(str)+1);
< if (ptr == (char *) NULL)
< errx(1, "malloc failed");
---
> ptr = (char *)xmalloc(strlen(str)+1);