fix: parse_number 64-bit architecture compatibility 66/196466/1 submit/tizen/20181231.025611
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Sun, 30 Dec 2018 02:05:32 +0000 (03:05 +0100)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Sun, 30 Dec 2018 02:12:01 +0000 (02:12 +0000)
commit37af7cecefd1cb05b9c58922871c982d5ea63afa
tree3dc9e2d904c4cd6960be4e399ad3dac783059e48
parent682e540702101156881a5c3219f1b27a8fcb4894
fix: parse_number 64-bit architecture compatibility

Simplify strtol() return error code checking to properly handle 64-bit
architectures.  Problem appears only on 64-bit architectures, where
LONG_MAX (long type, 4 bytes) does not fit into regular int type
(4 bytes).

Additionally, this commit removes str2num() function which is copy
paste of parse_number (with same bugs).

Change-Id: I44cbcdd1e5601c8ed988368932e84f29f719c8a9
Makefile.am
src/shared/logconfig.c
src/shared/parsers.c