Skip to content
This repository was archived by the owner on Jun 9, 2022. It is now read-only.

Commit e7c2e5a

Browse files
author
syb0rg
committed
Cleanup function
1 parent b21d652 commit e7c2e5a

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

src/libsphinxad/ad_openal.c

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -112,16 +112,9 @@ ad_read(ad_rec_t * r, int16 * buf, int32 max)
112112
}
113113

114114

115-
int32
116-
ad_close(ad_rec_t * r)
115+
int32 ad_close(ad_rec_t *r)
117116
{
118-
ALCboolean isClosed;
119-
120-
isClosed = alcCaptureCloseDevice(r -> device);
117+
ALCboolean isClosed = alcCaptureCloseDevice(r -> device);
121118

122-
if (isClosed) {
123-
return 0;
124-
} else {
125-
return -1;
126-
}
119+
return isClosed ? 0 : -1;
127120
}

0 commit comments

Comments
 (0)