Parent: fd6e896dd1fb2964075b1c7d5ebe77ecb3dd94ba
Author: Luiz Augusto Von Dentz <luiz.dentz-von@nokia.com>
Committer: Marcel Holtmann <marcel@holtmann.org>
Date: 2012-12-04 23:48:08
Tree: 9664243238767bc55cf2a72d3d80f39fa0503fa8
obexd: Fix writing to errno The primary intention of this is to avoid writing to errno since it belongs to libc, but we also follow posix recomendation to have the errno as return: "All POSIX.1c functions avoid using errno and, instead, return the error number directly as the function return value, with a return value of zero indicating that no error was detected. This strategy is, in fact, being followed on a POSIX-wide basis for all new functions."
Diffstat
| M | obexd/plugins/filesystem.c | | | 95 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| M | obexd/src/mimetype.c | | | 4 | ++- - |
| M | obexd/src/mimetype.h | | | 7 | ++++- - - |
| M | obexd/src/obex.c | | | 40 | ++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - |
4 files changed, 89 insertions(+), 57 deletions(-)