[BACK]Return to yacc.y CVS log [TXT][DIR] Up to [local] / src / usr.bin / mklocale

Diff for /src/usr.bin/mklocale/yacc.y between version 1.5 and 1.6

version 1.5, 2012/12/05 23:20:25 version 1.6, 2014/10/14 15:35:40
Line 311 
Line 311 
 u_int32_t *  u_int32_t *
 xlalloc(size_t sz)  xlalloc(size_t sz)
 {  {
     u_int32_t *r = (u_int32_t *)malloc(sz * sizeof(u_int32_t));      u_int32_t *r = (u_int32_t *)reallocarray(NULL, sz, sizeof(u_int32_t));
     if (!r) {      if (!r) {
         perror("xlalloc");          perror("xlalloc");
         abort();          abort();
Line 322 
Line 322 
 u_int32_t *  u_int32_t *
 xrelalloc(u_int32_t *old, size_t sz)  xrelalloc(u_int32_t *old, size_t sz)
 {  {
     u_int32_t *r = (u_int32_t *)realloc(old, sz * sizeof(u_int32_t));      u_int32_t *r = (u_int32_t *)reallocarray(old, sz, sizeof(u_int32_t));
     if (!r) {      if (!r) {
         perror("xrelalloc");          perror("xrelalloc");
         abort();          abort();

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6