load_voc.c
changeset 777 92882ef2ab81
parent 755 7c9cfb3bf040
child 792 5121e121451b
     1.1 --- a/load_voc.c	Mon Oct 16 02:16:47 2017 -0700
     1.2 +++ b/load_voc.c	Tue Oct 17 02:33:47 2017 -0700
     1.3 @@ -29,16 +29,6 @@
     1.4          (http://www.freshmeat.net/projects/sox/)
     1.5  */
     1.6  
     1.7 -/* $Id$ */
     1.8 -
     1.9 -#include <stdio.h>
    1.10 -#include <stdlib.h>
    1.11 -#include <string.h>
    1.12 -
    1.13 -#include "SDL_mutex.h"
    1.14 -#include "SDL_endian.h"
    1.15 -#include "SDL_timer.h"
    1.16 -
    1.17  #include "SDL_mixer.h"
    1.18  #include "load_voc.h"
    1.19  
    1.20 @@ -142,7 +132,7 @@
    1.21              return 1;  /* assume that's the end of the file. */
    1.22  
    1.23          /* Size is an 24-bit value. Ugh. */
    1.24 -        sblen = ( (bits24[0]) | (bits24[1] << 8) | (bits24[2] << 16) );
    1.25 +        sblen = ((bits24[0]) | (bits24[1] << 8) | (bits24[2] << 16));
    1.26  
    1.27          switch(block)
    1.28          {
    1.29 @@ -384,10 +374,10 @@
    1.30      Uint8 *fillptr;
    1.31      void *ptr;
    1.32  
    1.33 -    if ( (!src) || (!audio_buf) || (!audio_len) )   /* sanity checks. */
    1.34 +    if ((!src) || (!audio_buf) || (!audio_len))   /* sanity checks. */
    1.35          goto done;
    1.36  
    1.37 -    if ( !voc_check_header(src) )
    1.38 +    if (!voc_check_header(src))
    1.39          goto done;
    1.40  
    1.41      v.rate = -1;
    1.42 @@ -457,3 +447,5 @@
    1.43  } /* Mix_LoadVOC_RW */
    1.44  
    1.45  /* end of load_voc.c ... */
    1.46 +
    1.47 +/* vi: set ts=4 sw=4 expandtab: */