aboutsummaryrefslogtreecommitdiff
path: root/src/examples/fileserver_example_dirs.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-09-21 13:13:05 +0000
committerChristian Grothoff <christian@grothoff.org>2010-09-21 13:13:05 +0000
commitb4abb360a438af83a786b8f8e2df8b5ed0c865ba (patch)
treeea3f61eba2be499856ddc42cdf36940aeea8e4c6 /src/examples/fileserver_example_dirs.c
parentf33a16a615ae2fd55f1fd7ddf8654a82bcca0228 (diff)
downloadlibmicrohttpd-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.c8
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
33static int 33static ssize_t
34file_reader (void *cls, uint64_t pos, char *buf, int max) 34file_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
57static int 57static ssize_t
58dir_reader (void *cls, uint64_t pos, char *buf, int max) 58dir_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;