- add a missing ;

- use 'size' instead of 'nsize', makes more sense

ok christos@
This commit is contained in:
liamjfoy 2006-04-24 20:46:23 +00:00
parent 8293fbeb02
commit 14a07a0706
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: malloc.3,v 1.22 2006/02/25 02:28:55 wiz Exp $ .\" $NetBSD: malloc.3,v 1.23 2006/04/24 20:46:23 liamjfoy Exp $
.\" .\"
.\" Copyright (c) 1980, 1991, 1993 .\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved. .\" The Regents of the University of California. All rights reserved.
@ -126,7 +126,7 @@ When using
one must be careful to avoid the following idiom: one must be careful to avoid the following idiom:
.Pp .Pp
.Bd -literal -offset indent .Bd -literal -offset indent
nsize += 50 nsize += 50;
if ((p = realloc(p, nsize)) == NULL) if ((p = realloc(p, nsize)) == NULL)
return (NULL); return (NULL);
.Ed .Ed
@ -148,7 +148,7 @@ if ((p2 = realloc(p, newsize)) == NULL) {
return (NULL); return (NULL);
} }
p = p2; p = p2;
nsize = newsize; size = newsize;
.Ed .Ed
.\"XXX".Pp .\"XXX".Pp
.\"XXX"The .\"XXX"The