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 e4dbf85c273e286a079fa96ce3404437c7a22a40..26191d9652fe9a31f6d5a5e21beb3fe45ec73032 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 85c340dd6b725d0e6141e64669c59a3589a4c69e..64b6a2bd36573989a7808bc7c16066fbbf3c2d0c 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 9e34f780997fed5f3e684d79ddec8a45a6bcbcdf..5380a6c59b42c9c085c3e9ec2b4fc1ac83589416 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];