summaryrefslogtreecommitdiffstats
path: root/example/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/server.c')
-rw-r--r--example/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/server.c b/example/server.c
index 346e9fb9..9a9c2644 100644
--- a/example/server.c
+++ b/example/server.c
@@ -23,9 +23,9 @@
#include "fileproto.pb.h"
#include "common.h"
-bool listdir_callback(pb_ostream_t *stream, const pb_field_t *field, const void *arg)
+bool listdir_callback(pb_ostream_t *stream, const pb_field_t *field, void * const *arg)
{
- DIR *dir = (DIR*) arg;
+ DIR *dir = (DIR*) *arg;
struct dirent *file;
FileInfo fileinfo;