History

Fix read and write return types: now st_size_t, like the size inputs.

To support this change, turn on lots more compiler warnings, and fix all the warnings generated.

rrt committed 19 years ago

Commit 4d743c41 parent ce1f8f393 files · +875 −1236Browse files

Showing the changes to src/stat.c (1 of 93 files). Show all

Unified · Split

src/stat.c+5−5
@@ -45,7 +45,7 @@ typedef struct statstuff { · 44 unmodified lines
4545 /*
4646 * Process options
4747 */
48−int st_stat_getopts(eff_t effp, int n, char **argv)
48+static int st_stat_getopts(eff_t effp, int n, char **argv)
4949 {
5050 stat_t stat = (stat_t) effp->priv;
5151
@@ -96,7 +96,7 @@ int st_stat_getopts(eff_t effp, int n, char **argv) · 44 unmodified lines
9696 /*
9797 * Prepare processing.
9898 */
99−int st_stat_start(eff_t effp)
99+static int st_stat_start(eff_t effp)
100100 {
101101 stat_t stat = (stat_t) effp->priv;
102102 int i;
@@ -152,7 +152,7 @@ static void print_power_spectrum(unsigned samples, float rate, float *re_in, flo · 49 unmodified lines
152152 * Return number of samples processed.
153153 */
154154
155−int st_stat_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf,
155+static int st_stat_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf,
156156 st_size_t *isamp, st_size_t *osamp)
157157 {
158158 stat_t stat = (stat_t) effp->priv;
@@ -231,7 +231,7 @@ int st_stat_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, · 72 unmodified lines
231231 /*
232232 * Process tail of input samples.
233233 */
234−int st_stat_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp)
234+static int st_stat_drain(eff_t effp, st_sample_t *obuf UNUSED, st_size_t *osamp)
235235 {
236236 stat_t stat = (stat_t) effp->priv;
237237
@@ -256,7 +256,7 @@ int st_stat_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp) · 18 unmodified lines
256256 * Do anything required when you stop reading samples.
257257 * Don't close input file!
258258 */
259−int st_stat_stop(eff_t effp)
259+static int st_stat_stop(eff_t effp)
260260 {
261261 stat_t stat = (stat_t) effp->priv;
262262 double amp, scale, rms = 0, freq;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t