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

Unified · Split

src/cvsd.c+11−11
@@ -153,7 +153,7 @@ static void cvsdstartcommon(ft_t ft) · 152 unmodified lines
153153
154154 /* ---------------------------------------------------------------------- */
155155
156−int st_cvsdstartread(ft_t ft)
156+static int st_cvsdstartread(ft_t ft)
157157 {
158158 struct cvsdpriv *p = (struct cvsdpriv *) ft->priv;
159159 float *fp1;
@@ -179,7 +179,7 @@ int st_cvsdstartread(ft_t ft) · 19 unmodified lines
179179
180180 /* ---------------------------------------------------------------------- */
181181
182−int st_cvsdstartwrite(ft_t ft)
182+static int st_cvsdstartwrite(ft_t ft)
183183 {
184184 struct cvsdpriv *p = (struct cvsdpriv *) ft->priv;
185185 float *fp1;
@@ -201,7 +201,7 @@ int st_cvsdstartwrite(ft_t ft) · 15 unmodified lines
201201
202202 /* ---------------------------------------------------------------------- */
203203
204−int st_cvsdstopwrite(ft_t ft)
204+static int st_cvsdstopwrite(ft_t ft)
205205 {
206206 struct cvsdpriv *p = (struct cvsdpriv *) ft->priv;
207207
@@ -217,7 +217,7 @@ int st_cvsdstopwrite(ft_t ft) · 9 unmodified lines
217217
218218 /* ---------------------------------------------------------------------- */
219219
220−int st_cvsdstopread(ft_t ft)
220+static int st_cvsdstopread(ft_t ft)
221221 {
222222 struct cvsdpriv *p = (struct cvsdpriv *) ft->priv;
223223
@@ -229,10 +229,10 @@ int st_cvsdstopread(ft_t ft) · 5 unmodified lines
229229
230230 /* ---------------------------------------------------------------------- */
231231
232−st_ssize_t st_cvsdread(ft_t ft, st_sample_t *buf, st_size_t nsamp)
232+static st_size_t st_cvsdread(ft_t ft, st_sample_t *buf, st_size_t nsamp)
233233 {
234234 struct cvsdpriv *p = (struct cvsdpriv *) ft->priv;
235− int done = 0;
235+ st_size_t done = 0;
236236 float oval;
237237
238238 while (done < nsamp) {
@@ -288,10 +288,10 @@ st_ssize_t st_cvsdread(ft_t ft, st_sample_t *buf, st_size_t nsamp) · 49 unmodified lines
288288
289289 /* ---------------------------------------------------------------------- */
290290
291−st_ssize_t st_cvsdwrite(ft_t ft, const st_sample_t *buf, st_size_t nsamp)
291+static st_size_t st_cvsdwrite(ft_t ft, const st_sample_t *buf, st_size_t nsamp)
292292 {
293293 struct cvsdpriv *p = (struct cvsdpriv *) ft->priv;
294− int done = 0;
294+ st_size_t done = 0;
295295 float inval;
296296
297297 for(;;) {
@@ -519,7 +519,7 @@ static void make_dvms_hdr(ft_t ft, struct dvms_header *hdr) · 221 unmodified lines
519519
520520 /* ---------------------------------------------------------------------- */
521521
522−int st_dvmsstartread(ft_t ft)
522+static int st_dvmsstartread(ft_t ft)
523523 {
524524 struct cvsdpriv *p = (struct cvsdpriv *) ft->priv;
525525 struct dvms_header hdr;
@@ -558,7 +558,7 @@ int st_dvmsstartread(ft_t ft) · 32 unmodified lines
558558
559559 /* ---------------------------------------------------------------------- */
560560
561−int st_dvmsstartwrite(ft_t ft)
561+static int st_dvmsstartwrite(ft_t ft)
562562 {
563563 struct cvsdpriv *p = (struct cvsdpriv *) ft->priv;
564564 struct dvms_header hdr;
@@ -584,7 +584,7 @@ int st_dvmsstartwrite(ft_t ft) · 19 unmodified lines
584584
585585 /* ---------------------------------------------------------------------- */
586586
587−int st_dvmsstopwrite(ft_t ft)
587+static int st_dvmsstopwrite(ft_t ft)
588588 {
589589 struct dvms_header hdr;
590590 int rc;

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