1 | --- crypt.c.orig 1999-08-27 18:30:21.000000000 -0700 |
---|
2 | +++ crypt.c 2013-09-15 12:51:10.000000000 -0700 |
---|
3 | @@ -566,12 +566,14 @@ |
---|
4 | |
---|
5 | setup_salt(salt); |
---|
6 | |
---|
7 | - rawl = ntohl(*((u_long *) in)++); |
---|
8 | + rawl = ntohl(*((u_long *) in)); |
---|
9 | + (u_long *)in++; |
---|
10 | rawr = ntohl(*((u_long *) in)); |
---|
11 | |
---|
12 | retval = do_des(rawl, rawr, &l_out, &r_out, count); |
---|
13 | |
---|
14 | - *((u_long *) out)++ = htonl(l_out); |
---|
15 | + *((u_long *) out) = htonl(l_out); |
---|
16 | + (u_long *)out++; |
---|
17 | *((u_long *) out) = htonl(r_out); |
---|
18 | return(retval); |
---|
19 | } |
---|
20 | @@ -592,7 +594,7 @@ |
---|
21 | if (*key++ & 1) |
---|
22 | p[i] |= bits8[j]; |
---|
23 | } |
---|
24 | - return(des_setkey(p)); |
---|
25 | + return(des_setkey((char*)p)); |
---|
26 | } |
---|
27 | |
---|
28 | |
---|
29 | @@ -607,7 +609,7 @@ |
---|
30 | des_init(); |
---|
31 | |
---|
32 | setup_salt(0L); |
---|
33 | - p = block; |
---|
34 | + p = (u_char*)block; |
---|
35 | for (i = 0; i < 2; i++) { |
---|
36 | io[i] = 0L; |
---|
37 | for (j = 0; j < 32; j++) |
---|