20 Jul
2016
20 Jul
'16
2:32 p.m.
On Wed, 20 Jul 2016 11:58:52 +0200, Takashi Sakamoto wrote:
Usage of assert() is not better practice of programming as shared library APIs. They should return appropriate error code to promote applications to handle error state.
This commit applies condition statements with return value of -EINVAL, instead of assert(). As a backward compatibility for existent applications, old APIs still call assert().
Signed-off-by: Takashi Sakamoto o-takashi@sakamocchi.jp
Applied, thanks.
Takashi