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

Unified · Split

src/copy.c+4−14
@@ -19,7 +19,7 @@ static st_effect_t st_copy_effect; · 18 unmodified lines
1919 /*
2020 * Process options
2121 */
22−int st_copy_getopts(eff_t effp, int n, char **argv)
22+static int st_copy_getopts(eff_t effp UNUSED, int n, char **argv UNUSED)
2323 {
2424 if (n)
2525 {
@@ -32,11 +32,11 @@ int st_copy_getopts(eff_t effp, int n, char **argv) · 6 unmodified lines
3232 /*
3333 * Start processing
3434 */
35−int st_copy_start(eff_t effp)
35+static int st_copy_start(eff_t effp UNUSED)
3636 {
3737 /* nothing to do */
3838 /* stuff data into delaying effects here */
39− return (ST_SUCCESS);
39+ return (ST_SUCCESS);
4040 }
4141
4242 /*
@@ -45,7 +45,7 @@ int st_copy_start(eff_t effp) · 2 unmodified lines
4545 * Place in buf[].
4646 * Return number of samples read.
4747 */
48−int st_copy_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf,
48+static int st_copy_flow(eff_t effp UNUSED, const st_sample_t *ibuf, st_sample_t *obuf,
4949 st_size_t *isamp, st_size_t *osamp)
5050 {
5151 int done;
@@ -56,16 +56,6 @@ int st_copy_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, · 4 unmodified lines
5656 return (ST_SUCCESS);
5757 }
5858
59−/*
60− * Do anything required when you stop reading samples.
61− * Don't close input file!
62− */
63−int st_copy_stop(eff_t effp)
64−{
65− /* nothing to do */
66− return (ST_SUCCESS);
67−}
68−
6959 static st_effect_t st_copy_effect = {
7060 "copy",
7161 "Usage: Copy effect takes no options",

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