9759e5be25
- Honor CC, CFLAGS. - Make this compile with gcc3.
52 lines
1.2 KiB
Plaintext
52 lines
1.2 KiB
Plaintext
$OpenBSD: patch-qfDES_c,v 1.1 2002/10/06 22:28:49 naddy Exp $
|
|
--- qfDES.c.orig Mon Mar 29 19:16:33 1999
|
|
+++ qfDES.c Sun Oct 6 23:05:29 2002
|
|
@@ -128,7 +128,7 @@ v = ((v & rot[0]) << rot[1]) | v >> rot[
|
|
}
|
|
|
|
|
|
-#define LITTLE_ENDIAN(t, s) \
|
|
+#define LITTLE_ENDIAN_ENC(t, s) \
|
|
{ \
|
|
register unsigned int z, l = s/4; \
|
|
register Word *tp = (Word *) t; \
|
|
@@ -204,8 +204,8 @@ char *initVec;
|
|
|
|
#if defined(__i386__)
|
|
unsigned int origSize = size;
|
|
- LITTLE_ENDIAN(key, 8);
|
|
- LITTLE_ENDIAN(data, origSize);
|
|
+ LITTLE_ENDIAN_ENC(key, 8);
|
|
+ LITTLE_ENDIAN_ENC(data, origSize);
|
|
#endif
|
|
|
|
/*
|
|
@@ -258,7 +258,7 @@ char *initVec;
|
|
cb[0] = cb[1] = 0;
|
|
|
|
#if defined(__i386__)
|
|
- LITTLE_ENDIAN(cb, 8);
|
|
+ LITTLE_ENDIAN_ENC(cb, 8);
|
|
#endif
|
|
}
|
|
|
|
@@ -401,15 +401,15 @@ _initVec_:
|
|
((Word *) initVec)[1] = cb[1];
|
|
|
|
#if defined(__i386__)
|
|
- LITTLE_ENDIAN(initVec, 8);
|
|
+ LITTLE_ENDIAN_ENC(initVec, 8);
|
|
#endif
|
|
}
|
|
|
|
_exit_qfDES_:
|
|
|
|
#if defined(__i386__)
|
|
- LITTLE_ENDIAN(key, 8);
|
|
- LITTLE_ENDIAN(data, origSize);
|
|
+ LITTLE_ENDIAN_ENC(key, 8);
|
|
+ LITTLE_ENDIAN_ENC(data, origSize);
|
|
#endif
|
|
|
|
return 0;
|