OSDN Git Service

alsabat: fix misusing of errno
authorLu, Han <han.lu@intel.com>
Mon, 21 Mar 2016 11:05:47 +0000 (19:05 +0800)
committerTakashi Iwai <tiwai@suse.de>
Mon, 21 Mar 2016 17:03:12 +0000 (18:03 +0100)
commitbd6c7066063eed0adeb82021d08edf11eb020f8d
tree3ec372abe96d45d502466c0531b2bfaae466e64b
parentf84c15ca1d716ea1a6f58c3837608d5a0e542c58
alsabat: fix misusing of errno

Preserve errno value before use, since the value might be
changed by another library call.
Add "#include <errno.h>" and remove redundant include.

Signed-off-by: Lu, Han <han.lu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
bat/alsa.c
bat/analyze.c
bat/bat.c
bat/common.c