summaryrefslogtreecommitdiff
path: root/contrib/pgcrypto/crypt-des.c
diff options
context:
space:
mode:
authorTom Lane2005-09-24 19:14:05 +0000
committerTom Lane2005-09-24 19:14:05 +0000
commit8a65b820e2ef00d26050ac0d04962abaa91ab7b5 (patch)
tree46b7012c99a03f276d3f75a44b534cd33ff11213 /contrib/pgcrypto/crypt-des.c
parent8889685555e0ae7d5396038be9924ced2d330bd3 (diff)
Suppress signed-vs-unsigned-char warnings in contrib.
Diffstat (limited to 'contrib/pgcrypto/crypt-des.c')
-rw-r--r--contrib/pgcrypto/crypt-des.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/pgcrypto/crypt-des.c b/contrib/pgcrypto/crypt-des.c
index 0edff299a05..74768e73a77 100644
--- a/contrib/pgcrypto/crypt-des.c
+++ b/contrib/pgcrypto/crypt-des.c
@@ -651,9 +651,9 @@ px_crypt_des(const char *key, const char *setting)
r0,
r1,
keybuf[2];
- uint8 *p,
- *q;
- static uint8 output[21];
+ char *p;
+ uint8 *q;
+ static char output[21];
if (!des_initialised)
des_init();
@@ -669,7 +669,7 @@ px_crypt_des(const char *key, const char *setting)
if ((*q++ = *key << 1))
key++;
}
- if (des_setkey((uint8 *) keybuf))
+ if (des_setkey((char *) keybuf))
return (NULL);
#ifndef DISABLE_XDES
@@ -690,7 +690,7 @@ px_crypt_des(const char *key, const char *setting)
/*
* Encrypt the key with itself.
*/
- if (des_cipher((uint8 *) keybuf, (uint8 *) keybuf, 0L, 1))
+ if (des_cipher((char *) keybuf, (char *) keybuf, 0L, 1))
return (NULL);
/*
@@ -700,7 +700,7 @@ px_crypt_des(const char *key, const char *setting)
while (q - (uint8 *) keybuf - 8 && *key)
*q++ ^= *key++ << 1;
- if (des_setkey((uint8 *) keybuf))
+ if (des_setkey((char *) keybuf))
return (NULL);
}
strncpy(output, setting, 9);