Code cleanup

Make precedence of && over || explicit.
Explicitly convert between char * and unsigned char *.
Don't assign potentially negative return code to an unsigend variable.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-07-06 13:59:14 -07:00
parent e76675d4df
commit b1538c809d
6 changed files with 18 additions and 15 deletions

View file

@ -28,7 +28,7 @@ typedef struct dtrakheader_ {
#define read_string(_property) \
_property = (unsigned char *)calloc(tmp_1byte + 1, 1); \
fread(_property, 1, tmp_1byte, archivo); \
_property = strcat(to_utf8(_property), "");
fread((char *)_property, 1, tmp_1byte, archivo); \
_property = (unsigned char *)strcat(to_utf8(_property), "");
#endif // DATATRAK_HEADER_H