summaryrefslogtreecommitdiff
path: root/src/common/grfio.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-03-13 01:32:32 +0100
committerHaru <haru@dotalux.com>2016-07-12 20:58:32 +0200
commit3a19ceb903629a9ff7ce85f800c1b4fefc8aa2c5 (patch)
tree6d53af669e4ff00876a8e44261a6b9672ad172ee /src/common/grfio.c
parenta19ecac6d3405652f766eb7b18c7ee6a3270a78b (diff)
downloadhercules-3a19ceb903629a9ff7ce85f800c1b4fefc8aa2c5.tar.gz
hercules-3a19ceb903629a9ff7ce85f800c1b4fefc8aa2c5.tar.bz2
hercules-3a19ceb903629a9ff7ce85f800c1b4fefc8aa2c5.tar.xz
hercules-3a19ceb903629a9ff7ce85f800c1b4fefc8aa2c5.zip
Removed unnecessary typedefs from des.h
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/grfio.c')
-rw-r--r--src/common/grfio.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/common/grfio.c b/src/common/grfio.c
index c24f2aee5..c5c38455d 100644
--- a/src/common/grfio.c
+++ b/src/common/grfio.c
@@ -121,9 +121,9 @@ static uint8_t grf_substitution(uint8_t in)
}
#if 0 /* this is not used anywhere, is it ok to delete? */
-static void grf_shuffle_enc(BIT64* src)
+static void grf_shuffle_enc(struct BIT64 *src)
{
- BIT64 out;
+ struct BIT64 out;
out.b[0] = src->b[3];
out.b[1] = src->b[4];
@@ -138,9 +138,9 @@ static void grf_shuffle_enc(BIT64* src)
}
#endif // 0
-static void grf_shuffle_dec(BIT64* src)
+static void grf_shuffle_dec(struct BIT64 *src)
{
- BIT64 out;
+ struct BIT64 out;
out.b[0] = src->b[3];
out.b[1] = src->b[4];
@@ -156,8 +156,8 @@ static void grf_shuffle_dec(BIT64* src)
static void grf_decode_header(unsigned char* buf, size_t len)
{
- BIT64* p = (BIT64*)buf;
- size_t nblocks = len / sizeof(BIT64);
+ struct BIT64 *p = (struct BIT64 *)buf;
+ size_t nblocks = len / sizeof(struct BIT64);
size_t i;
// first 20 blocks are all des-encrypted
@@ -169,8 +169,8 @@ static void grf_decode_header(unsigned char* buf, size_t len)
static void grf_decode_full(unsigned char* buf, size_t len, int cycle)
{
- BIT64* p = (BIT64*)buf;
- size_t nblocks = len / sizeof(BIT64);
+ struct BIT64 *p = (struct BIT64 *)buf;
+ size_t nblocks = len / sizeof(struct BIT64);
int dcycle, scycle;
size_t i, j;