Skip to content

Commit 5d50a6e

Browse files
punkymaniacGravisZro
authored andcommitted
Fix coding style for pointer
Make some syntax change to follow coding style. see also libgit2 commit: 379c46463cbdd73e04c5efc180309d4600e56624
1 parent 3962697 commit 5d50a6e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

‎sha1.c‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1710,7 +1710,7 @@ static void sha1_recompression_step(uint32_t step, uint32_t ihvin[5], uint32_t i
17101710

17111711

17121712

1713-
staticvoidsha1_process(SHA1_CTX*ctx, constuint32_tblock[16])
1713+
staticvoidsha1_process(SHA1_CTX*ctx, constuint32_tblock[16])
17141714
{
17151715
unsignedi, j;
17161716
uint32_tubc_dv_mask[DVMASKSIZE] ={0xFFFFFFFF };
@@ -1762,7 +1762,7 @@ static void sha1_process(SHA1_CTX* ctx, const uint32_t block[16])
17621762
}
17631763
}
17641764

1765-
voidSHA1DCInit(SHA1_CTX*ctx)
1765+
voidSHA1DCInit(SHA1_CTX*ctx)
17661766
{
17671767
ctx->total=0;
17681768
ctx->ihv[0] =0x67452301;
@@ -1778,7 +1778,7 @@ void SHA1DCInit(SHA1_CTX* ctx)
17781778
ctx->callback=NULL;
17791779
}
17801780

1781-
voidSHA1DCSetSafeHash(SHA1_CTX*ctx, intsafehash)
1781+
voidSHA1DCSetSafeHash(SHA1_CTX*ctx, intsafehash)
17821782
{
17831783
if (safehash)
17841784
ctx->safe_hash=1;
@@ -1787,36 +1787,36 @@ void SHA1DCSetSafeHash(SHA1_CTX* ctx, int safehash)
17871787
}
17881788

17891789

1790-
voidSHA1DCSetUseUBC(SHA1_CTX*ctx, intubc_check)
1790+
voidSHA1DCSetUseUBC(SHA1_CTX*ctx, intubc_check)
17911791
{
17921792
if (ubc_check)
17931793
ctx->ubc_check=1;
17941794
else
17951795
ctx->ubc_check=0;
17961796
}
17971797

1798-
voidSHA1DCSetUseDetectColl(SHA1_CTX*ctx, intdetect_coll)
1798+
voidSHA1DCSetUseDetectColl(SHA1_CTX*ctx, intdetect_coll)
17991799
{
18001800
if (detect_coll)
18011801
ctx->detect_coll=1;
18021802
else
18031803
ctx->detect_coll=0;
18041804
}
18051805

1806-
voidSHA1DCSetDetectReducedRoundCollision(SHA1_CTX*ctx, intreduced_round_coll)
1806+
voidSHA1DCSetDetectReducedRoundCollision(SHA1_CTX*ctx, intreduced_round_coll)
18071807
{
18081808
if (reduced_round_coll)
18091809
ctx->reduced_round_coll=1;
18101810
else
18111811
ctx->reduced_round_coll=0;
18121812
}
18131813

1814-
voidSHA1DCSetCallback(SHA1_CTX*ctx, collision_block_callbackcallback)
1814+
voidSHA1DCSetCallback(SHA1_CTX*ctx, collision_block_callbackcallback)
18151815
{
18161816
ctx->callback=callback;
18171817
}
18181818

1819-
voidSHA1DCUpdate(SHA1_CTX*ctx, constchar*buf, size_tlen)
1819+
voidSHA1DCUpdate(SHA1_CTX*ctx, constchar*buf, size_tlen)
18201820
{
18211821
unsignedleft, fill;
18221822

0 commit comments

Comments
(0)