]> git.meshlink.io Git - meshlink/blobdiff - src/sptps_test.c
Ensure everything compiles with -Wall without giving warnings.
[meshlink] / src / sptps_test.c
index e9cab253f21011dbbc686dbef25c2faeed4f73a2..550e0db2343a511760706f2402919f2b8790c482 100644 (file)
@@ -45,7 +45,7 @@ static bool writeonly;
 static int in = 0;
 static int out = 1;
 
-static bool send_data(void *handle, uint8_t type, const char *data, size_t len) {
+static bool send_data(void *handle, uint8_t type, const void *data, size_t len) {
        char hex[len * 2 + 1];
        bin2hex(data, hex, len);
        if(verbose)
@@ -56,7 +56,7 @@ static bool send_data(void *handle, uint8_t type, const char *data, size_t len)
        return true;
 }
 
-static bool receive_record(void *handle, uint8_t type, const char *data, uint16_t len) {
+static bool receive_record(void *handle, uint8_t type, const void *data, uint16_t len) {
        if(verbose)
                fprintf(stderr, "Received type %d record of %hu bytes:\n", type, len);
        if(!writeonly)