chiark / gitweb /
hostside: hidrawconv: change declarations of processing functions
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sat, 19 Feb 2011 19:30:36 +0000 (19:30 +0000)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sat, 19 Feb 2011 19:40:02 +0000 (19:40 +0000)
hostside/hidrawconv-hex.c
hostside/hidrawconv-joytechneos.c
hostside/hidrawconv.h

index e4dbf85..26191d9 100644 (file)
@@ -1,7 +1,6 @@
 #include "hidrawconv.h"
 
-static void pr(uint8_t msg[MAXREPORTLEN], int msglen,
-              const uint8_t last[MAXREPORTLEN]) {
+static void pr(const uint8_t *msg, int msglen, const uint8_t *last) {
   dumphex(stdout, msg, msglen);
   putchar('\n');
 }
index 85c340d..64b6a2b 100644 (file)
@@ -24,8 +24,7 @@ static const ValLoc vallocs[]= {
   { 0 }
 };
 
-static void pr(uint8_t msg[MAXREPORTLEN], int msglen,
-              const uint8_t last[MAXREPORTLEN]) {
+static void pr(const uint8_t *msg, int msglen, const uint8_t *last) {
   reportbits(msg, last, msglen, keybits);
   reportlocs(msg, last, msglen, vallocs);
 }
index 9e34f78..5380a6c 100644 (file)
@@ -9,8 +9,7 @@
 #define MAXREPORTLEN 256
 #define MAXREPORTS 256
 
-typedef void ProcessReport(uint8_t msg[MAXREPORTLEN], int msglen,
-                          const uint8_t last[MAXREPORTLEN]);
+typedef void ProcessReport(const uint8_t *msg, int msglen, const uint8_t *last);
 
 extern const char *const descriptor;
 extern ProcessReport *const report_processors[MAXREPORTS];