Code Review
/
apps
/
agl-service-can-low-level.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge branch 'dev-0.2'
[apps/agl-service-can-low-level.git]
/
example
/
server.c
diff --git
a/example/server.c
b/example/server.c
index
04f88f0
..
346e9fb
100644
(file)
--- a/
example/server.c
+++ b/
example/server.c
@@
-20,7
+20,7
@@
#include <pb_encode.h>
#include <pb_decode.h>
#include <pb_encode.h>
#include <pb_decode.h>
-#include "fileproto.h"
+#include "fileproto.
pb.
h"
#include "common.h"
bool listdir_callback(pb_ostream_t *stream, const pb_field_t *field, const void *arg)
#include "common.h"
bool listdir_callback(pb_ostream_t *stream, const pb_field_t *field, const void *arg)
@@
-38,7
+38,7
@@
bool listdir_callback(pb_ostream_t *stream, const pb_field_t *field, const void
if (!pb_encode_tag_for_field(stream, field))
return false;
if (!pb_encode_tag_for_field(stream, field))
return false;
- if (!pb_enc
_submessage(stream, field
, &fileinfo))
+ if (!pb_enc
ode_submessage(stream, FileInfo_fields
, &fileinfo))
return false;
}
return false;
}
@@
-55,7
+55,7
@@
void handle_connection(int connfd)
if (!pb_decode(&input, ListFilesRequest_fields, &request))
{
if (!pb_decode(&input, ListFilesRequest_fields, &request))
{
- printf("Decod
ing failed.\n"
);
+ printf("Decod
e failed: %s\n", PB_GET_ERROR(&input)
);
return;
}
return;
}