oops, build without NSPR

This commit is contained in:
David Rose 2003-09-23 20:42:13 +00:00
parent 03297f74c8
commit 5cd7c10da3
2 changed files with 4 additions and 4 deletions

View File

@ -212,7 +212,7 @@ hash_buffer(const char *buffer, int length) {
// buffer and the following 8 positions.
////////////////////////////////////////////////////////////////////
void HashVal::
encode_hex(unsigned int val, char *buffer) {
encode_hex(PN_uint32 val, char *buffer) {
buffer[0] = tohex(val >> 28);
buffer[1] = tohex(val >> 24);
buffer[2] = tohex(val >> 20);
@ -230,7 +230,7 @@ encode_hex(unsigned int val, char *buffer) {
// unsigned integer.
////////////////////////////////////////////////////////////////////
void HashVal::
decode_hex(const char *buffer, unsigned int &val) {
decode_hex(const char *buffer, PN_uint32 &val) {
unsigned int bytes[8];
for (int i = 0; i < 8; i++) {
bytes[i] = fromhex(buffer[i]);

View File

@ -72,8 +72,8 @@ PUBLISHED:
#endif // HAVE_SSL
private:
static void encode_hex(unsigned int val, char *buffer);
static void decode_hex(const char *buffer, unsigned int &val);
static void encode_hex(PN_uint32 val, char *buffer);
static void decode_hex(const char *buffer, PN_uint32 &val);
INLINE static char tohex(unsigned int nibble);
INLINE static unsigned int fromhex(char digit);