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
7676 }
7777
7878 /* get options. */
79−int st_speed_getopts(eff_t effp, int n, char **argv)
79+static int st_speed_getopts(eff_t effp, int n, char **argv)
8080 {
8181 speed_t speed = (speed_t) effp->priv;
8282 int cent = 0;
@@ -106,7 +106,7 @@ int st_speed_getopts(eff_t effp, int n, char **argv) · 23 unmodified lines
106106 }
107107
108108 /* start processing. */
109−int st_speed_start(eff_t effp)
109+static int st_speed_start(eff_t effp)
110110 {
111111 speed_t speed = (speed_t) effp->priv;
112112
@@ -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
192192
193193 /* handle a flow.
194194 */
195−int st_speed_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf,
195+static int st_speed_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf,
196196 st_size_t *isamp, st_size_t *osamp)
197197 {
198198 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
237237
238238 /* end of stuff.
239239 */
240−int st_speed_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp)
240+static int st_speed_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp)
241241 {
242242 speed_t speed = (speed_t) effp->priv;
243243 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
274274
275275 /* stop processing. report overflows.
276276 */
277−int st_speed_stop(eff_t effp)
277+static int st_speed_stop(eff_t effp)
278278 {
279279 speed_t speed = (speed_t) effp->priv;
280280

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