From 4f556060a663ba83c9db41df019d29e257f7b473 Mon Sep 17 00:00:00 2001 From: Taylor Holberton Date: Fri, 16 Sep 2016 09:54:36 -0400 Subject: fixed bracket placement --- pcm.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pcm.c b/pcm.c index c1f2212..a97947f 100644 --- a/pcm.c +++ b/pcm.c @@ -250,7 +250,8 @@ unsigned int pcm_frames_to_bytes(struct pcm *pcm, unsigned int frames) (pcm_format_to_bits(pcm->config.format) >> 3); } -static int pcm_sync_ptr(struct pcm *pcm, int flags) { +static int pcm_sync_ptr(struct pcm *pcm, int flags) +{ if (pcm->sync_ptr) { pcm->sync_ptr->flags = flags; if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_SYNC_PTR, pcm->sync_ptr) < 0) @@ -259,8 +260,8 @@ static int pcm_sync_ptr(struct pcm *pcm, int flags) { return 0; } -static int pcm_hw_mmap_status(struct pcm *pcm) { - +static int pcm_hw_mmap_status(struct pcm *pcm) +{ if (pcm->sync_ptr) return 0; -- cgit v1.2.3