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/repeat.c (1 of 93 files). Show all

Unified · Split

src/repeat.c+5−5
@@ -33,7 +33,7 @@ typedef struct repeatstuff { · 32 unmodified lines
3333 int repeats;
3434 } *repeat_t;
3535
36−int st_repeat_getopts(eff_t effp, int n, char **argv)
36+static int st_repeat_getopts(eff_t effp, int n, char **argv)
3737 {
3838 repeat_t repeat = (repeat_t)effp->priv;
3939
@@ -55,7 +55,7 @@ int st_repeat_getopts(eff_t effp, int n, char **argv) · 15 unmodified lines
5555 return (ST_SUCCESS);
5656 }
5757
58−int st_repeat_start(eff_t effp)
58+static int st_repeat_start(eff_t effp)
5959 {
6060 repeat_t repeat = (repeat_t)effp->priv;
6161
@@ -69,7 +69,7 @@ int st_repeat_start(eff_t effp) · 7 unmodified lines
6969 return (ST_SUCCESS);
7070 }
7171
72−int st_repeat_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf,
72+static int st_repeat_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf UNUSED,
7373 st_size_t *isamp, st_size_t *osamp)
7474 {
7575 repeat_t repeat = (repeat_t)effp->priv;
@@ -85,7 +85,7 @@ int st_repeat_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, · 9 unmodified lines
8585 return (ST_SUCCESS);
8686 }
8787
88−int st_repeat_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp)
88+static int st_repeat_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp)
8989 {
9090 size_t read = 0;
9191 st_sample_t *buf;
@@ -187,7 +187,7 @@ int st_repeat_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp) · 95 unmodified lines
187187 return ST_SUCCESS;
188188 }
189189
190−int st_repeat_stop(eff_t effp)
190+static int st_repeat_stop(eff_t effp)
191191 {
192192 repeat_t repeat = (repeat_t)effp->priv;
193193

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