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

Unified · Split

src/auto.c+2−2
@@ -23,7 +23,7 @@ · 22 unmodified lines
2323 #define LASTCHAR '/'
2424 #endif
2525
26−int st_autostartread(ft_t ft)
26+static int st_autostartread(ft_t ft)
2727 {
2828 char *type = NULL;
2929 char header[20];
@@ -179,7 +179,7 @@ int st_autostartread(ft_t ft) · 149 unmodified lines
179179 return ((* ft->h->startread)(ft));
180180 }
181181
182−int st_autostartwrite(ft_t ft)
182+static int st_autostartwrite(ft_t ft)
183183 {
184184 st_fail_errno(ft,ST_EFMT,"Type AUTO can only be used for input!");
185185 return(ST_EOF);

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