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
19/*19/*
20 * Process options20 * Process options
21 */21 */
22int st_copy_getopts(eff_t effp, int n, char **argv) 22static int st_copy_getopts(eff_t effp UNUSED, int n, char **argv UNUSED)
23{23{
24 if (n)24 if (n)
25 {25 {
@@ -32,11 +32,11 @@ int st_copy_getopts(eff_t effp, int n, char **argv) · 6 unmodified lines
32/*32/*
33 * Start processing33 * Start processing
34 */34 */
35int st_copy_start(eff_t effp)35static int st_copy_start(eff_t effp UNUSED)
36{36{
37 /* nothing to do */37 /* nothing to do */
38 /* stuff data into delaying effects here */38 /* stuff data into delaying effects here */
39 return (ST_SUCCESS);39 return (ST_SUCCESS);
40}40}
41 41
42/*42/*
@@ -45,7 +45,7 @@ int st_copy_start(eff_t effp) · 2 unmodified lines
45 * Place in buf[].45 * Place in buf[].
46 * Return number of samples read.46 * Return number of samples read.
47 */47 */
48int st_copy_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, 48static int st_copy_flow(eff_t effp UNUSED, const st_sample_t *ibuf, st_sample_t *obuf,
49 st_size_t *isamp, st_size_t *osamp)49 st_size_t *isamp, st_size_t *osamp)
50{50{
51 int done;51 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
56 return (ST_SUCCESS);56 return (ST_SUCCESS);
57}57}
58 58
59/*
60 * Do anything required when you stop reading samples.
61 * Don't close input file!
62 */
63int st_copy_stop(eff_t effp)
64{
65 /* nothing to do */
66 return (ST_SUCCESS);
67}
68
69static st_effect_t st_copy_effect = {59static st_effect_t st_copy_effect = {
70 "copy",60 "copy",
71 "Usage: Copy effect takes no options",61 "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