~ubuntu-branches/ubuntu/wily/trafficserver/wily

« back to all changes in this revision

Viewing changes to lib/ts/load_http_hdr.cc

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2012-12-17 22:28:16 UTC
  • mfrom: (5.1.8 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20121217222816-7xwjsx5k76zkb63d
Tags: 3.2.0-1ubuntu1
* Revert FreeBSD strerror_r() fixes that give errors with glibc 2.16.
* Apply patch from Konstantinos Margaritis to define barriers on ARM.

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
    exit(1);
119
119
  }
120
120
 
121
 
  char *file_buf = (char *) xmalloc(sizeof(char) * (s_info.st_size + 1));
 
121
  char *file_buf = (char *)ats_malloc(sizeof(char) * (s_info.st_size + 1));
122
122
  file_buf[s_info.st_size] = '\0';
123
123
 
124
124
 
161
161
    mbuf_size *= 2;
162
162
  }
163
163
 
164
 
  char *mbuf = (char *) xmalloc(mbuf_size);
 
164
  char *mbuf = (char *)ats_malloc(mbuf_size);
165
165
  int bytes_read = 0;
166
166
  int cur_line = 0;
167
167