aboutsummaryrefslogtreecommitdiff
path: root/crypt/crypt_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypt/crypt_util.c')
-rw-r--r--crypt/crypt_util.c46
1 files changed, 12 insertions, 34 deletions
diff --git a/crypt/crypt_util.c b/crypt/crypt_util.c
index b96ecc8..33d894a 100644
--- a/crypt/crypt_util.c
+++ b/crypt/crypt_util.c
@@ -261,9 +261,7 @@ __libc_lock_define_initialized (static, _ufc_tables_lock)
#ifdef DEBUG
void
-_ufc_prbits(a, n)
- ufc_long *a;
- int n;
+_ufc_prbits (ufc_long *a, int n)
{
ufc_long i, j, t, tmp;
n /= 8;
@@ -279,9 +277,7 @@ _ufc_prbits(a, n)
}
static void
-_ufc_set_bits(v, b)
- ufc_long v;
- ufc_long *b;
+_ufc_set_bits (ufc_long v, ufc_long *b)
{
ufc_long i;
*b = 0;
@@ -301,9 +297,7 @@ _ufc_set_bits(v, b)
*/
void
-_ufc_clearmem(start, cnt)
- char *start;
- int cnt;
+_ufc_clearmem (char *start, int cnt)
{
while(cnt--)
*start++ = '\0';
@@ -332,8 +326,7 @@ _ufc_copymem(from, to, cnt)
*/
void
-__init_des_r(__data)
- struct crypt_data * __restrict __data;
+__init_des_r (struct crypt_data * __restrict __data)
{
int comes_from_bit;
int bit, sg;
@@ -558,9 +551,7 @@ __init_des (void)
#ifdef _UFC_32_
STATIC void
-shuffle_sb(k, saltbits)
- long32 *k;
- ufc_long saltbits;
+shuffle_sb (long32 *k, ufc_long saltbits)
{
ufc_long j;
long32 x;
@@ -574,9 +565,7 @@ shuffle_sb(k, saltbits)
#ifdef _UFC_64_
STATIC void
-shuffle_sb(k, saltbits)
- long64 *k;
- ufc_long saltbits;
+shuffle_sb (long64 *k, ufc_long saltbits)
{
ufc_long j;
long64 x;
@@ -614,9 +603,7 @@ bad_for_salt (char c)
*/
bool
-_ufc_setup_salt_r(s, __data)
- const char *s;
- struct crypt_data * __restrict __data;
+_ufc_setup_salt_r (const char *s, struct crypt_data * __restrict __data)
{
ufc_long i, j, saltbits;
char s0, s1;
@@ -675,9 +662,7 @@ _ufc_setup_salt_r(s, __data)
}
void
-_ufc_mk_keytab_r(key, __data)
- const char *key;
- struct crypt_data * __restrict __data;
+_ufc_mk_keytab_r (const char *key, struct crypt_data * __restrict __data)
{
ufc_long v1, v2, *k1;
int i;
@@ -735,9 +720,7 @@ _ufc_mk_keytab_r(key, __data)
*/
void
-_ufc_dofinalperm_r(res, __data)
- ufc_long *res;
- struct crypt_data * __restrict __data;
+_ufc_dofinalperm_r (ufc_long *res, struct crypt_data * __restrict __data)
{
ufc_long v1, v2, x;
ufc_long l1,l2,r1,r2;
@@ -910,9 +893,7 @@ __encrypt_r(__block, __edflag, __data)
weak_alias (__encrypt_r, encrypt_r)
void
-encrypt(__block, __edflag)
- char *__block;
- int __edflag;
+encrypt (char *__block, int __edflag)
{
__encrypt_r(__block, __edflag, &_ufc_foobar);
}
@@ -924,9 +905,7 @@ encrypt(__block, __edflag)
*/
void
-__setkey_r(__key, __data)
- const char *__key;
- struct crypt_data * __restrict __data;
+__setkey_r (const char *__key, struct crypt_data * __restrict __data)
{
int i,j;
unsigned char c;
@@ -944,8 +923,7 @@ __setkey_r(__key, __data)
weak_alias (__setkey_r, setkey_r)
void
-setkey(__key)
- const char *__key;
+setkey (const char *__key)
{
__setkey_r(__key, &_ufc_foobar);
}