From 7e855354b7794090e27a7056d465677e9aa688c9 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 9 Jan 2009 02:49:09 +0000 Subject: Experimental code for sending hexified binary over the control channel. --- hex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hex.c') diff --git a/hex.c b/hex.c index 19e08cbf..d4d52980 100644 --- a/hex.c +++ b/hex.c @@ -52,7 +52,8 @@ char /*@ observer @*/ *gpsd_hexdump(const void *binbuf, size_t binbuflen) return hexbuf; } -int gpsd_hexpack(char *src, char *dst, int len){ +int gpsd_hexpack(char *src, char *dst, size_t len){ +/* hex2bin source string to destination - destination can be same as source */ int i, k, l; l = (int)(strlen(src) / 2); -- cgit v1.2.1