Commit: dde5b23665ba3b29ccfa8c9fd640c5995de3b4a3
Parent: 7a7c5e3032aad9ad3bfa73fef9bf6b883bb73992
Author: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Committer: Marcel Holtmann <marcel@holtmann.org>
Date: 2012-08-10 08:52:37
Tree: 796e5257b8bc5a6b6c140583fbf69c3407137b4a

rfcomm: Fix checking return value instead of errno We were checking by a positive return value instead of checking by -1 and errno. However when there's no support for TTY kernel returns EOPNOTSUPP as usual, which in the end will have a return value of -1 and errno will be set to EOPNOTSUPP.

Diffstat

M tools/rfcomm.c | 12 ++++++++- - - -

1 files changed, 8 insertions(+), 4 deletions(-)

View Full Diff | Patch