diff options
author | arr <arr@FreeBSD.org> | 2002-06-24 22:29:01 +0000 |
---|---|---|
committer | arr <arr@FreeBSD.org> | 2002-06-24 22:29:01 +0000 |
commit | 1c28000a2297d886fa3e4fcc11a054df8dfb1a8e (patch) | |
tree | 2af95384ad05a705b0e060404b691bef105d8a59 /lib/libatm/cache_key.c | |
parent | 3662a19b344f66039ab009e1b5c78dd1e8b49afc (diff) | |
download | FreeBSD-src-1c28000a2297d886fa3e4fcc11a054df8dfb1a8e.zip FreeBSD-src-1c28000a2297d886fa3e4fcc11a054df8dfb1a8e.tar.gz |
- Remove UM_* memory handling macros as they just obfuscate code.
Diffstat (limited to 'lib/libatm/cache_key.c')
-rw-r--r-- | lib/libatm/cache_key.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libatm/cache_key.c b/lib/libatm/cache_key.c index be98b86..680f44a 100644 --- a/lib/libatm/cache_key.c +++ b/lib/libatm/cache_key.c @@ -79,7 +79,7 @@ scsp_cache_key(ap, ip, ol, op) /* * Initialize */ - UM_ZERO(buff, sizeof(buff)); + bzero(buff, sizeof(buff)); /* * Copy the addresses into a buffer for MD5 computation @@ -87,8 +87,8 @@ scsp_cache_key(ap, ip, ol, op) len = sizeof(struct in_addr) + ap->address_length; if (len > sizeof(buff)) len = sizeof(buff); - UM_COPY(ip, buff, sizeof(struct in_addr)); - UM_COPY(ap->address, &buff[sizeof(struct in_addr)], + bcopy(ip, buff, sizeof(struct in_addr)); + bcopy(ap->address, &buff[sizeof(struct in_addr)], len - sizeof(struct in_addr)); /* @@ -101,7 +101,7 @@ scsp_cache_key(ap, ip, ol, op) /* * Fold the 16-byte digest to the required length */ - UM_ZERO((caddr_t)op, ol); + bzero((caddr_t)op, ol); for (i = 0; i < 16; i++) { op[i % ol] = op[i % ol] ^ digest[i]; } |