mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
[util] Use a clearer parameter name for SZ_Alloc
This commit is contained in:
parent
658890d681
commit
7864bb0ba6
2 changed files with 6 additions and 6 deletions
|
@ -44,7 +44,7 @@ typedef struct sizebuf_s
|
|||
int cursize;
|
||||
} sizebuf_t;
|
||||
|
||||
void SZ_Alloc (sizebuf_t *buf, int startsize);
|
||||
void SZ_Alloc (sizebuf_t *buf, int maxsize);
|
||||
void SZ_Free (sizebuf_t *buf);
|
||||
void SZ_Clear (sizebuf_t *buf);
|
||||
void *SZ_GetSpace (sizebuf_t *buf, int length);
|
||||
|
|
|
@ -41,12 +41,12 @@
|
|||
|
||||
|
||||
VISIBLE void
|
||||
SZ_Alloc (sizebuf_t *buf, int startsize)
|
||||
SZ_Alloc (sizebuf_t *buf, int maxsize)
|
||||
{
|
||||
if (startsize < 256)
|
||||
startsize = 256;
|
||||
buf->data = Hunk_AllocName (startsize, "sizebuf");
|
||||
buf->maxsize = startsize;
|
||||
if (maxsize < 256)
|
||||
maxsize = 256;
|
||||
buf->data = Hunk_AllocName (maxsize, "sizebuf");
|
||||
buf->maxsize = maxsize;
|
||||
buf->cursize = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue