diff options
author | Daniel Stenberg <daniel@haxx.se> | 2013-02-13 14:37:16 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-02-13 14:58:04 +0100 |
commit | 2a3a63ae1f0894fd33db0c30c75fb2f771d8e7fc (patch) | |
tree | 453492a5ef87079694e5b41617f753022beaa042 /bitncmp.c | |
parent | 9c03cc118c748f6ed2ffbda83ee7ba37cc34738d (diff) | |
download | c-ares-2a3a63ae1f0894fd33db0c30c75fb2f771d8e7fc.tar.gz c-ares-2a3a63ae1f0894fd33db0c30c75fb2f771d8e7fc.tar.bz2 c-ares-2a3a63ae1f0894fd33db0c30c75fb2f771d8e7fc.zip |
ares__bitncmp: use two underscores for private functions
It used a single one previously making it look like a public one
Diffstat (limited to 'bitncmp.c')
-rw-r--r-- | bitncmp.c | 40 |
1 files changed, 20 insertions, 20 deletions
@@ -33,27 +33,27 @@ * author: * Paul Vixie (ISC), June 1996 */ -int -ares_bitncmp(const void *l, const void *r, int n) { - unsigned int lb, rb; - int x, b; +int ares__bitncmp(const void *l, const void *r, int n) +{ + unsigned int lb, rb; + int x, b; - b = n / 8; - x = memcmp(l, r, b); - if (x || (n % 8) == 0) - return (x); + b = n / 8; + x = memcmp(l, r, b); + if (x || (n % 8) == 0) + return (x); - lb = ((const unsigned char *)l)[b]; - rb = ((const unsigned char *)r)[b]; - for (b = n % 8; b > 0; b--) { - if ((lb & 0x80) != (rb & 0x80)) { - if (lb & 0x80) - return (1); - return (-1); - } - lb <<= 1; - rb <<= 1; - } - return (0); + lb = ((const unsigned char *)l)[b]; + rb = ((const unsigned char *)r)[b]; + for (b = n % 8; b > 0; b--) { + if ((lb & 0x80) != (rb & 0x80)) { + if (lb & 0x80) + return (1); + return (-1); + } + lb <<= 1; + rb <<= 1; + } + return (0); } #endif |