diff --git a/src/sound_aix.c b/src/sound_aix.c index 4b9059c..f7404c2 100644 --- a/src/sound_aix.c +++ b/src/sound_aix.c @@ -93,10 +93,10 @@ static void play(void *b, int i) while (i) { if ((j = write(audio_fd, b, i)) > 0) { i -= j; - (char *)b += j; + b = (char *)b + j; } else break; - }; + } } static void deinit(void) diff --git a/src/sound_hpux.c b/src/sound_hpux.c index 30f0eb2..a77121e 100644 --- a/src/sound_hpux.c +++ b/src/sound_hpux.c @@ -116,7 +116,7 @@ static void play(void *b, int i) while (i) { if ((j = write(audio_fd, b, i)) > 0) { i -= j; - (char *)b += j; + b = (char *)b + j; } else break; }