3 Commits

Author SHA1 Message Date
Khem Raj
54375d90a4 Fix build with musl
Include needed headers to fix following errors

| router/dm.h:41:1: error: unknown type name 'ssize_t'; did you mean 'size_t'?
|  ssize_t dm_send(struct diag_client *dm, const void *ptr, size_t len);
|  ^~~~~~~

tools/send_data.c:55:9: error: variable 'tv' has initializer but
incomplete type
  struct timeval tv = {5, 0};
         ^~~~~~~

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-25 14:01:54 -07:00
Bjorn Andersson
6762698d92 send_data: Decode "bad command" response
If the response is a "bad commad", print that rather than expecting the
user to know what command 19 is.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2018-07-12 21:56:45 -07:00
Bjorn Andersson
de16f5e2a7 diag: Restructure repository
Move router code into "router" and move send_data into "tools", in order
to make things cleaner as the implementation gains further components.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2018-07-12 21:56:44 -07:00