fix for Mac OS X
authorCyprien Laplace <cyprien@cypou.net>
Sun, 15 Feb 2015 22:03:21 +0000 (17:03 -0500)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Mon, 14 Sep 2015 13:48:22 +0000 (15:48 +0200)
commit829d39fc9567fa0bce6914b321adf8910ca707c8
tree84064454cffb8665e66ae4b60b335f1696667e4d
parenta746bbe1f30e25484298c8f3f3f23251e8a7f4e7
fix for Mac OS X

Two small fixes to let lpcprog work on OS X Yosemite:
- initialize errno to 0 before strtoul() and errno testing
- pad the parts structure as OSX seems to align the size of the
  structure on 64-bit boundary, which made it think there were 10
  values to read instead of 9
parts.c
parts.h