]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
POSIX/src/common/module.c: do not use strerror_r the GNU way. 12363/head
authorWillem Jan Withagen <wjw@digiware.nl>
Wed, 7 Dec 2016 12:58:07 +0000 (13:58 +0100)
committerWillem Jan Withagen <wjw@digiware.nl>
Wed, 7 Dec 2016 19:56:34 +0000 (20:56 +0100)
commite0554f9745e17deb60084d88543c95bb67bf1bff
treec375697da2cf5f900bb5b9f97483da84f9978a95
parentb3e2719abddc349e2df6327256c461ba9b779fcc
POSIX/src/common/module.c: do not use strerror_r the GNU way.

From the manpage:
       char *strerror(int errnum);

       int strerror_r(int errnum, char *buf, size_t buflen);
                   /* XSI-compliant */

       char *strerror_r(int errnum, char *buf, size_t buflen);
                   /* GNU-specific */

So changed the strerror_r() version to a version where we ignore the
the result of the function call

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/common/module.c