aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/client.c2
-rw-r--r--example/server.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/example/client.c b/example/client.c
index edc8394..e6e9a2e 100644
--- a/example/client.c
+++ b/example/client.c
@@ -23,7 +23,7 @@
#include "fileproto.pb.h"
#include "common.h"
-bool printfile_callback(pb_istream_t *stream, const pb_field_t *field, void *arg)
+bool printfile_callback(pb_istream_t *stream, const pb_field_t *field, void **arg)
{
FileInfo fileinfo;
diff --git a/example/server.c b/example/server.c
index 346e9fb..9a9c264 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;