From: Ian Jackson Date: Sat, 19 Feb 2011 19:30:36 +0000 (+0000) Subject: hostside: hidrawconv: change declarations of processing functions X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=d9ec65d8fd9adb7c6958c7dc6a3f8ab338f20dbe;p=trains.git hostside: hidrawconv: change declarations of processing functions --- diff --git a/hostside/hidrawconv-hex.c b/hostside/hidrawconv-hex.c index e4dbf85..26191d9 100644 --- a/hostside/hidrawconv-hex.c +++ b/hostside/hidrawconv-hex.c @@ -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'); } diff --git a/hostside/hidrawconv-joytechneos.c b/hostside/hidrawconv-joytechneos.c index 85c340d..64b6a2b 100644 --- a/hostside/hidrawconv-joytechneos.c +++ b/hostside/hidrawconv-joytechneos.c @@ -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); } diff --git a/hostside/hidrawconv.h b/hostside/hidrawconv.h index 9e34f78..5380a6c 100644 --- a/hostside/hidrawconv.h +++ b/hostside/hidrawconv.h @@ -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];