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

Unified · Split

src/speed.c+5−5
@@ -76,7 +76,7 @@ static double cub( · 75 unmodified lines
76}76}
77 77
78/* get options. */78/* get options. */
79int st_speed_getopts(eff_t effp, int n, char **argv)79static int st_speed_getopts(eff_t effp, int n, char **argv)
80{80{
81 speed_t speed = (speed_t) effp->priv;81 speed_t speed = (speed_t) effp->priv;
82 int cent = 0;82 int cent = 0;
@@ -106,7 +106,7 @@ int st_speed_getopts(eff_t effp, int n, char **argv) · 23 unmodified lines
106}106}
107 107
108/* start processing. */108/* start processing. */
109int st_speed_start(eff_t effp)109static int st_speed_start(eff_t effp)
110{110{
111 speed_t speed = (speed_t) effp->priv;111 speed_t speed = (speed_t) effp->priv;
112 112
@@ -192,7 +192,7 @@ static st_size_t compute(eff_t effp, speed_t speed, st_sample_t *obuf, st_size_t · 79 unmodified lines
192 192
193/* handle a flow.193/* handle a flow.
194 */194 */
195int st_speed_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, 195static int st_speed_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf,
196 st_size_t *isamp, st_size_t *osamp)196 st_size_t *isamp, st_size_t *osamp)
197{197{
198 speed_t speed;198 speed_t speed;
@@ -237,7 +237,7 @@ int st_speed_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, · 38 unmodified lines
237 237
238/* end of stuff. 238/* end of stuff.
239 */239 */
240int st_speed_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp)240static int st_speed_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp)
241{241{
242 speed_t speed = (speed_t) effp->priv;242 speed_t speed = (speed_t) effp->priv;
243 st_size_t i, oindex;243 st_size_t i, oindex;
@@ -274,7 +274,7 @@ int st_speed_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp) · 30 unmodified lines
274 274
275/* stop processing. report overflows. 275/* stop processing. report overflows.
276 */276 */
277int st_speed_stop(eff_t effp)277static int st_speed_stop(eff_t effp)
278{278{
279 speed_t speed = (speed_t) effp->priv;279 speed_t speed = (speed_t) effp->priv;
280 280

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