diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-09-21 13:13:05 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-09-21 13:13:05 +0000 |
commit | b4abb360a438af83a786b8f8e2df8b5ed0c865ba (patch) | |
tree | ea3f61eba2be499856ddc42cdf36940aeea8e4c6 /src/examples/fileserver_example_dirs.c | |
parent | f33a16a615ae2fd55f1fd7ddf8654a82bcca0228 (diff) | |
download | libmicrohttpd-b4abb360a438af83a786b8f8e2df8b5ed0c865ba.tar.gz libmicrohttpd-b4abb360a438af83a786b8f8e2df8b5ed0c865ba.zip |
use size_t
Diffstat (limited to 'src/examples/fileserver_example_dirs.c')
-rw-r--r-- | src/examples/fileserver_example_dirs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/examples/fileserver_example_dirs.c b/src/examples/fileserver_example_dirs.c index 3bdb64ff..8c874994 100644 --- a/src/examples/fileserver_example_dirs.c +++ b/src/examples/fileserver_example_dirs.c | |||
@@ -30,8 +30,8 @@ | |||
30 | 30 | ||
31 | #define PAGE "<html><head><title>File not found</title></head><body>File not found</body></html>" | 31 | #define PAGE "<html><head><title>File not found</title></head><body>File not found</body></html>" |
32 | 32 | ||
33 | static int | 33 | static ssize_t |
34 | file_reader (void *cls, uint64_t pos, char *buf, int max) | 34 | file_reader (void *cls, uint64_t pos, char *buf, size_t max) |
35 | { | 35 | { |
36 | FILE *file = cls; | 36 | FILE *file = cls; |
37 | 37 | ||
@@ -54,8 +54,8 @@ dir_free_callback (void *cls) | |||
54 | closedir (dir); | 54 | closedir (dir); |
55 | } | 55 | } |
56 | 56 | ||
57 | static int | 57 | static ssize_t |
58 | dir_reader (void *cls, uint64_t pos, char *buf, int max) | 58 | dir_reader (void *cls, uint64_t pos, char *buf, size_t max) |
59 | { | 59 | { |
60 | DIR *dir = cls; | 60 | DIR *dir = cls; |
61 | struct dirent *e; | 61 | struct dirent *e; |