ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/slirp/mbuf.c
(Generate patch)

Comparing BasiliskII/src/slirp/mbuf.c (file contents):
Revision 1.1 by gbeauche, 2005-05-13T09:00:59Z vs.
Revision 1.2 by gbeauche, 2006-04-02T08:47:39Z

# Line 146 | Line 146 | m_inc(m, size)
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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines