Take care of possible surprising sem_init implementations.
authorWerner Koch <wk@gnupg.org>
Wed, 9 May 2012 15:08:30 +0000 (17:08 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 9 May 2012 15:08:30 +0000 (17:08 +0200)
commit05e423336a86f0530f50d567060a799d2824dff7
tree0fb4b2625096458e16afe2bce08fdb6b810c7a62
parent9f01785cadabc30eb7b1f0475762375aee651ce7
Take care of possible surprising sem_init implementations.

* src/npth.c (npth_init): Return an error only for POSIX.1-2008.
--

Although, I doubt that there is a sem_init version which does not
return 0 on success, it is better to avoid such surprises.  Most
callers will not test for the error return anyway.
src/npth.c