To support this change, turn on lots more compiler warnings, and fix all the warnings generated.
Showing the changes to src/hcom.c (1 of 93 files). Show all
Unified · Split
| @@ -50,7 +50,7 @@ struct readpriv { · 49 unmodified lines | |||
| 50 | 50 | ||
| 51 | static int skipbytes(ft_t, int); | 51 | static int skipbytes(ft_t, int); |
| 52 | 52 | ||
| 53 | int st_hcomstartread(ft_t ft) | 53 | static int st_hcomstartread(ft_t ft) |
| 54 | { | 54 | { |
| 55 | struct readpriv *p = (struct readpriv *) ft->priv; | 55 | struct readpriv *p = (struct readpriv *) ft->priv; |
| 56 | int i; | 56 | int i; |
| @@ -174,7 +174,7 @@ static int skipbytes(ft_t ft, int n) · 117 unmodified lines | |||
| 174 | return(ST_SUCCESS); | 174 | return(ST_SUCCESS); |
| 175 | } | 175 | } |
| 176 | 176 | ||
| 177 | st_ssize_t st_hcomread(ft_t ft, st_sample_t *buf, st_size_t len) | 177 | static st_size_t st_hcomread(ft_t ft, st_sample_t *buf, st_size_t len) |
| 178 | { | 178 | { |
| 179 | register struct readpriv *p = (struct readpriv *) ft->priv; | 179 | register struct readpriv *p = (struct readpriv *) ft->priv; |
| 180 | int done = 0; | 180 | int done = 0; |
| @@ -238,7 +238,7 @@ st_ssize_t st_hcomread(ft_t ft, st_sample_t *buf, st_size_t len) · 57 unmodified lines | |||
| 238 | return done; | 238 | return done; |
| 239 | } | 239 | } |
| 240 | 240 | ||
| 241 | int st_hcomstopread(ft_t ft) | 241 | static int st_hcomstopread(ft_t ft) |
| 242 | { | 242 | { |
| 243 | register struct readpriv *p = (struct readpriv *) ft->priv; | 243 | register struct readpriv *p = (struct readpriv *) ft->priv; |
| 244 | 244 | ||
| @@ -265,7 +265,7 @@ struct writepriv { · 20 unmodified lines | |||
| 265 | 265 | ||
| 266 | #define BUFINCR (10*BUFSIZ) | 266 | #define BUFINCR (10*BUFSIZ) |
| 267 | 267 | ||
| 268 | int st_hcomstartwrite(ft_t ft) | 268 | static int st_hcomstartwrite(ft_t ft) |
| 269 | { | 269 | { |
| 270 | register struct writepriv *p = (struct writepriv *) ft->priv; | 270 | register struct writepriv *p = (struct writepriv *) ft->priv; |
| 271 | 271 | ||
| @@ -302,7 +302,7 @@ int st_hcomstartwrite(ft_t ft) · 30 unmodified lines | |||
| 302 | return (ST_SUCCESS); | 302 | return (ST_SUCCESS); |
| 303 | } | 303 | } |
| 304 | 304 | ||
| 305 | st_ssize_t st_hcomwrite(ft_t ft, const st_sample_t *buf, st_size_t len) | 305 | static st_size_t st_hcomwrite(ft_t ft, const st_sample_t *buf, st_size_t len) |
| 306 | { | 306 | { |
| 307 | register struct writepriv *p = (struct writepriv *) ft->priv; | 307 | register struct writepriv *p = (struct writepriv *) ft->priv; |
| 308 | st_sample_t datum; | 308 | st_sample_t datum; |
| @@ -514,7 +514,7 @@ static void padbytes(ft_t ft, int n) · 205 unmodified lines | |||
| 514 | 514 | ||
| 515 | /* End of hcom utility routines */ | 515 | /* End of hcom utility routines */ |
| 516 | 516 | ||
| 517 | int st_hcomstopwrite(ft_t ft) | 517 | static int st_hcomstopwrite(ft_t ft) |
| 518 | { | 518 | { |
| 519 | register struct writepriv *p = (struct writepriv *) ft->priv; | 519 | register struct writepriv *p = (struct writepriv *) ft->priv; |
| 520 | unsigned char *compressed_data = p->data; | 520 | unsigned char *compressed_data = p->data; |