OSDN Git Service
(root)
/
android-x86
/
external-alsa-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8188c24
)
aplay: Fix type for signal flag
author
Takashi Iwai
<tiwai@suse.de>
Wed, 29 Apr 2015 16:01:07 +0000
(18:01 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Wed, 29 Apr 2015 16:01:07 +0000
(18:01 +0200)
A flag used in signal handlers has to be a special atomic type,
volatile sig_atomic_t.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
aplay/aplay.c
patch
|
blob
|
history
diff --git
a/aplay/aplay.c
b/aplay/aplay.c
index
e58e1bc
..
dfa1a0a
100644
(file)
--- a/
aplay/aplay.c
+++ b/
aplay/aplay.c
@@
-107,7
+107,7
@@
static snd_pcm_stream_t stream = SND_PCM_STREAM_PLAYBACK;
static int mmap_flag = 0;
static int interleaved = 1;
static int nonblock = 0;
-static
in
t in_aborting = 0;
+static
volatile sig_atomic_
t in_aborting = 0;
static u_char *audiobuf = NULL;
static snd_pcm_uframes_t chunk_size = 0;
static unsigned period_time = 0;