From 2f1e018a2e2601c24d37328ab8b204b6a017ec5f Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Sun, 30 Mar 1997 20:24:47 +0000 Subject: delete the unaligned code --- src/lib/libc/crypt/morecrypt.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/lib/libc/crypt/morecrypt.c') diff --git a/src/lib/libc/crypt/morecrypt.c b/src/lib/libc/crypt/morecrypt.c index 2bf7d21c38..1178ef6544 100644 --- a/src/lib/libc/crypt/morecrypt.c +++ b/src/lib/libc/crypt/morecrypt.c @@ -51,7 +51,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: morecrypt.c,v 1.7 1996/11/14 05:45:15 etheisen Exp $"; +static char rcsid[] = "$OpenBSD: morecrypt.c,v 1.8 1997/03/30 20:24:47 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -487,24 +487,14 @@ des_cipher(in, out, salt, count) setup_salt((int32_t)salt); -#if 0 - rawl = ntohl(*((u_int32_t *) in)++); - rawr = ntohl(*((u_int32_t *) in)); -#else memcpy(x, in, sizeof x); rawl = ntohl(x[0]); rawr = ntohl(x[1]); -#endif retval = do_des(rawl, rawr, &l_out, &r_out, count); -#if 0 - *((u_int32_t *) out)++ = htonl(l_out); - *((u_int32_t *) out) = htonl(r_out); -#else x[0] = htonl(l_out); x[1] = htonl(r_out); memcpy(out, x, sizeof x); -#endif return(retval); } -- cgit v1.2.3-55-g6feb