summaryrefslogtreecommitdiff
path: root/aplay
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-04-29 18:01:07 +0200
committerTakashi Iwai <tiwai@suse.de>2015-04-29 18:01:07 +0200
commit9aa5c271f4eb2e3481b4a5076eb025242215ad7f (patch)
tree8741f96483793c52038f4ac3bc7ae7baba638a0c /aplay
parent8188c2466a7d2179aba4e243ff2b85363961f9f1 (diff)
downloadalsa-utils-9aa5c271f4eb2e3481b4a5076eb025242215ad7f.tar.gz
aplay: Fix type for signal flag
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>
Diffstat (limited to 'aplay')
-rw-r--r--aplay/aplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/aplay/aplay.c b/aplay/aplay.c
index e58e1bc..dfa1a0a 100644
--- 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 int 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;