make parseable for splint
- replace non standard u_char with unsigned char (ANSI)
- advice splint to ignore variadic macros
- move declarations from the middle to top of functions (C90)
- replace local library includes <> to ""
fix memleaks
avoid memleak if memory is full
fix "memleak" at the end of mbus_parse_hex
minor fixes
remove unreachable code
add parameter checks to mbus_data_bcd_encode
init time structure in mbus_data_tm_decode as possible
mark falltrough for splint
remove unused variable val
fix removed realloc
Merge pull request #48 from lategoodbye/master

parseable for splint, fix memleaks, minor fixes
extend baudrate from int to long
because 38400 baud could be bigger than INT_MAX
change TCP port datatype from int to uint16_t
because int doesn't match the range
add range check in every TCP binary
Merge remote-tracking branch 'origin/master'
add more checks in lower layers
to avoid segmentation faults, out of bounds access and integer overflow
make parseable for splint
suppress splint warnings about datatype cc_t
fix type of return value for read()
add checks before accessing tty
Fix return value and error message
Merge pull request #49 from lategoodbye/master

Fix port and baudrate, add some checks
Fixed correction in mbus_vib_unit_normalize
Merge pull request #50 from lategoodbye/master

Fixed correction in auxiliary function
test cases for invalid telegrams
- too short fixed data length (invalid_length2.hex)
- premature end of record at data (premature_end_of_data1.hex,
premature_end_of_data2.hex)
- premature end of record at DIF (premature_end_of_dif1.hex,
premature_end_of_dif2.hex)
- premature end of record at variable length VIF
(premature_end_of_var_vif1.hex)
- premature end of record at VIF (premature_end_of_vif1.hex)
- too long variable length VIF (too_long_var_vif.hex)
- too many DIFE (too_many_dife.hex)
- too many VIFE (too_many_vife.hex)
- too short variable header (too_short_header.hex)
Improve data parsing
- add length defines for variable data header and fixed data
- add size check for fixed data
- avoid problems with memory alignment / padding in mbus structures
(improve portability)
- abort parsing if there are too many DIFE or VIFEs
- check for premature end of variable data
- check size of variable length VIF
Merge pull request #51 from lategoodbye/master

Improve data parsing
Added frame option to mbus-serial-request-data-multi-reply
Improved parsing
Add missing file mbus-tcp-application-reset from issue #42.

This will fix also issue #52.
Merge pull request #53 from minusinf/master

Added frame "-f" to option to mbus-serial-request-data-multi-reply to specify frames needed for request
Merge pull request #54 from lategoodbye/master

Add missing file mbus-tcp-application-reset.c
add new parameter f to man page
add range for TCP port