146 |
|
struct mbuf *m; |
147 |
|
int size; |
148 |
|
{ |
149 |
+ |
int datasize; |
150 |
+ |
|
151 |
|
/* some compiles throw up on gotos. This one we can fake. */ |
152 |
|
if(m->m_size>size) return; |
153 |
|
|
154 |
|
if (m->m_flags & M_EXT) { |
155 |
< |
/* datasize = m->m_data - m->m_ext; */ |
155 |
> |
datasize = m->m_data - m->m_ext; |
156 |
|
m->m_ext = (char *)realloc(m->m_ext,size); |
157 |
|
/* if (m->m_ext == NULL) |
158 |
|
* return (struct mbuf *)NULL; |
159 |
|
*/ |
160 |
< |
/* m->m_data = m->m_ext + datasize; */ |
160 |
> |
m->m_data = m->m_ext + datasize; |
161 |
|
} else { |
160 |
– |
int datasize; |
162 |
|
char *dat; |
163 |
|
datasize = m->m_data - m->m_dat; |
164 |
|
dat = (char *)malloc(size); |