summaryrefslogtreecommitdiff
path: root/hex.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-09 23:01:13 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-09 23:01:13 +0000
commitef5669b4f86d2e9c4f9f0bc12576040cbf511cea (patch)
tree56a4130d6809450e089e774dd79f8fcf0c321551 /hex.c
parent48db3e2e6a7fb12f6133725600ed5dc7ae36fdc8 (diff)
downloadgpsd-ef5669b4f86d2e9c4f9f0bc12576040cbf511cea.tar.gz
Yet more splint cleanup. All regression tests pass.
Diffstat (limited to 'hex.c')
-rw-r--r--hex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hex.c b/hex.c
index 97192c5b..41afcf17 100644
--- a/hex.c
+++ b/hex.c
@@ -52,7 +52,7 @@ char /*@ observer @*/ *gpsd_hexdump(const void *binbuf, size_t binbuflen)
return hexbuf;
}
-int gpsd_hexpack(char *src, char *dst, size_t len){
+int gpsd_hexpack(/*@in@*/const char *src, /*@out@*/char *dst, size_t len){
/* hex2bin source string to destination - destination can be same as source */
int i, k, l;
@@ -72,7 +72,7 @@ int gpsd_hexpack(char *src, char *dst, size_t len){
}
/*@ +charint -shiftimplementation @*/
-int hex2bin(char *s)
+int hex2bin(const char *s)
{
int a, b;