~ubuntu-branches/ubuntu/feisty/basilisk2/feisty

« back to all changes in this revision

Viewing changes to src/slirp/mbuf.c

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2006-06-01 01:11:16 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060601011116-xjhegbgyfsxag5fl
Tags: 0.9.20060529-1
* New upstream CVS snapshot.
* Update local cdbs snippet copyright-check.mk:
  + Broaden scan to also look for "(c)" by default.
  + Make egrep options configurable.
  + Ignore auto-tools files.
* Bump up standards-version to 3.7.2 (no changes needed).
* Let dh_strip do the stripping (not the make install target).

Show diffs side-by-side

added added

removed removed

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