]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
extras/hex.h: do not use strlen as variable name
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 3 Feb 2017 22:28:01 +0000 (23:28 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 3 Feb 2017 22:28:31 +0000 (23:28 +0100)
That is, do not utilize a standard C function name as variable name.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
lib/extras/hex.h

index 0a0d5c5aa8b6ba647e6aea61d46cc74dc53c5028..e2ce3ff28a445fcb51cdef3515ea1e23bf00ea7f 100644 (file)
@@ -66,8 +66,8 @@ static inline size_t hex_str_size(size_t bytes)
  *
  *     hex_decode(str, strlen(str), buf, sizeof(buf));
  */
-static inline size_t hex_data_size(size_t strlen)
+static inline size_t hex_data_size(size_t slen)
 {
-       return strlen / 2;
+       return slen / 2;
 }
 #endif /* PETTYCOIN_HEX_H */