Commit: e4e02ce6577de874a6a5fe508e4dc07ec8ed034e
Parent: c1f8969f83da27d1fd92c823188195e39359b16c
Author: Anderson Lizardo <anderson.lizardo@openbossa.org>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2011-11-17 13:57:52
Tree: d1b690b41481c064a9c953310a18d952c28a7b91

AVCTP: Fix errno handling convention Variables which are assigned to the errno variable (usually called "err") should be negative, and "-err" should be used where a positive value is needed. This patch also fixes a bug related to not using an "err" variable to store the errno value before calling external library code.

Diffstat

M audio/avctp.c | 31 +++++++++++++- - - - - - - - - - - - - - - - - -

1 files changed, 13 insertions(+), 18 deletions(-)

View Full Diff | Patch