Mercurial > pidgin
diff src/sound.c @ 2372:2927c2c26fe6
[gaim-migrate @ 2385]
reformatting. nothing else.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Thu, 27 Sep 2001 19:17:11 +0000 |
| parents | 25e7c2a68ed2 |
| children | cd81f1f2c896 |
line wrap: on
line diff
--- a/src/sound.c Thu Sep 27 17:44:23 2001 +0000 +++ b/src/sound.c Thu Sep 27 19:17:11 2001 +0000 @@ -202,7 +202,7 @@ static int play_artsc(unsigned char *data, int size) { arts_stream_t stream; - guint16* lineardata; + guint16 *lineardata; int result = 1; int error; int i; @@ -243,7 +243,7 @@ static int artsc_play_file(char *file) { struct stat stat_buf; - unsigned char* buf = NULL; + unsigned char *buf = NULL; int result = 0; int fd = -1; @@ -263,15 +263,17 @@ buf = g_malloc(stat_buf.st_size); if (!buf) goto out; - + if (read(fd, buf, stat_buf.st_size) < 0) goto out; result = play_artsc(buf, stat_buf.st_size); - out: - if (buf) g_free(buf); - if (fd != -1) close(fd); + out: + if (buf) + g_free(buf); + if (fd != -1) + close(fd); return result; }
