X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=example%2Fclient.c;h=9ad9c8c93264ba3dc912a8fd618bf25558c54053;hb=ea57f74741b5b5ab3ab4a3e81d8b61811417b4c6;hp=f0520574bfe58802079ff3b12a8be1d87764137c;hpb=494fbd91e4e5574a4cf8dbe69b3f80a08e97e85b;p=apps%2Fagl-service-can-low-level.git diff --git a/example/client.c b/example/client.c index f0520574..9ad9c8c9 100644 --- a/example/client.c +++ b/example/client.c @@ -20,7 +20,7 @@ #include #include -#include "fileproto.h" +#include "fileproto.pb.h" #include "common.h" bool printfile_callback(pb_istream_t *stream, const pb_field_t *field, void *arg) @@ -30,7 +30,7 @@ bool printfile_callback(pb_istream_t *stream, const pb_field_t *field, void *arg if (!pb_decode(stream, FileInfo_fields, &fileinfo)) return false; - printf("%-10lld %s\n", fileinfo.inode, fileinfo.name); + printf("%-10lld %s\n", (long long)fileinfo.inode, fileinfo.name); return true; }