summaryrefslogtreecommitdiff
path: root/hex.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-03-18 17:37:53 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-03-18 17:37:53 +0000
commit91cd827bc5b4eeb70c6597c3d28c7c841f34cffc (patch)
treefc374b705996a0d9a742338f6c9ebc713606f0a3 /hex.c
parent1df47c95095d80d8b386d6584d6396bff7e187da (diff)
downloadgpsd-91cd827bc5b4eeb70c6597c3d28c7c841f34cffc.tar.gz
splint cleanup.
Diffstat (limited to 'hex.c')
-rw-r--r--hex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hex.c b/hex.c
index f09f6159..5addeaeb 100644
--- a/hex.c
+++ b/hex.c
@@ -56,6 +56,7 @@ 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;
+ /*@ -mustdefine @*/
l = (int)(strlen(src) / 2);
if ((l < 1) || ((size_t)l > len))
return -2;
@@ -67,6 +68,7 @@ int gpsd_hexpack(char *src, char *dst, size_t len){
else
return -1;
return l;
+ /*@ +mustdefine @*/
}
/*@ +charint -shiftimplementation @*/