Various cleanups
authorEric Biggers <ebiggers3@gmail.com>
Sun, 16 Dec 2012 02:50:30 +0000 (20:50 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 16 Dec 2012 02:50:30 +0000 (20:50 -0600)
commit034fd063f956d0806e557680a36a69a42556a776
tree9c9f2e50b39e0ccd1db43dd909121a7a8271e3a3
parent00614e1689f0314ad221f5b4f864ae0ab4c667a4
Various cleanups

- wim_timestamp_to_str() instead of asctime(gmtime(wim_timestamp_to_unix()))
- inode_stream_lte() non-inline to save space
- new errors WIMLIB_ERR_CHAR_CONVERSION and WIMLIB_ERR_INVALID_PART_NUMBER
- write_xml_data():  Have libxml2 write directly to output file with UTF-16LE
  encoding (no need for in-memory buffer and converting to UTF-16LE afterwards)
- read_header(): Validate total_parts and part_number
- Fix a couple potential integer overflows
- Fix some indentation and phase out more 'uint' uses
- Remove some unneeded DEBUG() statements
14 files changed:
src/comp.h
src/decomp.h
src/dentry.c
src/header.c
src/lookup_table.c
src/lookup_table.h
src/lzx-comp.c
src/lzx-decomp.c
src/timestamp.h
src/util.c
src/wim.c
src/wimlib.h
src/xml.c
src/xml.h