Skip to content

Commit

Permalink
Fixing warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel committed Jan 5, 2010
1 parent 02f89d9 commit 5dd2d43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Classes/IPhone/GHUIButton.m
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ void _horizontalEdgeColorBlendFunction(void *info, const float *in, float *out)
*out++ = 1.0 - v + twoColors->red1 * v;
*out++ = 1.0 - v + twoColors->green1 * v;
*out++ = 1.0 - v + twoColors->blue1 * v;
*out++ = 1.0 - v + twoColors->alpha1 * v;
*out++ = 1.0 - v + twoColors->alpha1 * v; *out;
} else {
*out++ = twoColors->red2;
*out++ = twoColors->green2;
*out++ = twoColors->blue2;
*out++ = twoColors->alpha2;
*out++ = twoColors->alpha2; *out;
}
}

Expand Down
4 changes: 2 additions & 2 deletions Classes/sha1.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void SHA1Transform(unsigned long state[5], unsigned char buffer[64])
state[3] += d;
state[4] += e;
/* Wipe variables */
a = b = c = d = e = 0;
a = b = c = d = e = 0; a; b; c; d; e;
}


Expand Down Expand Up @@ -157,7 +157,7 @@ void SHA1Final(unsigned char digest[20], SHA1_CTX* context)
((context->state[i>>2] >> ((3-(i & 3)) * 8) ) & 255);
}
/* Wipe variables */
i = j = 0;
i = j = 0; i; j;
memset(context->buffer, 0, 64);
memset(context->state, 0, 20);
memset(context->count, 0, 8);
Expand Down

0 comments on commit 5dd2d43

Please sign in to comment.