comparison src/libpst.c @ 128:7f747c8c9d02

cleanup installed headers
author Carl Byington <carl@five-ten-sg.com>
date Thu, 05 Feb 2009 09:22:22 -0800
parents 23a36ac0514d
children fc11b1d1ad34
comparison
equal deleted inserted replaced
127:c2482d0cd84e 128:7f747c8c9d02
563 DEBUG_WARN(("No extended attributes buffer found. Not processing\n")); 563 DEBUG_WARN(("No extended attributes buffer found. Not processing\n"));
564 DEBUG_RET(); 564 DEBUG_RET();
565 return 0; 565 return 0;
566 } 566 }
567 567
568 memcpy(&xattrib, &(buffer[bptr]), sizeof(xattrib)); 568 xattrib.extended=PST_LE_GET_UINT32(buffer+bptr), bptr += 4;
569 LE32_CPU(xattrib.extended); 569 xattrib.type=PST_LE_GET_UINT16(buffer+bptr), bptr += 2;
570 LE16_CPU(xattrib.type); 570 xattrib.map=PST_LE_GET_UINT16(buffer+bptr), bptr += 2;
571 LE16_CPU(xattrib.map);
572 bptr += sizeof(xattrib);
573 571
574 while (xattrib.type != 0 && bptr < bsize) { 572 while (xattrib.type != 0 && bptr < bsize) {
575 ptr = (pst_x_attrib_ll*) xmalloc(sizeof(*ptr)); 573 ptr = (pst_x_attrib_ll*) xmalloc(sizeof(*ptr));
576 memset(ptr, 0, sizeof(*ptr)); 574 memset(ptr, 0, sizeof(*ptr));
577 ptr->type = xattrib.type; 575 ptr->type = xattrib.type;