(libretro-common) Style nits

This commit is contained in:
twinaphex 2017-01-17 19:20:15 +01:00
parent 9a87bada55
commit c6e1b47d98
3 changed files with 30 additions and 24 deletions

View File

@ -66,7 +66,8 @@ static INLINE uint8_t rtga__get8(rtga__context *s)
static void rtga__skip(rtga__context *s, int n)
{
if (n < 0) {
if (n < 0)
{
s->img_buffer = s->img_buffer_end;
return;
}

View File

@ -165,7 +165,8 @@ char *string_trim_whitespace(char *const s)
return s;
}
char* word_wrap(char* buffer, char* string, int line_width) {
char* word_wrap(char* buffer, char* string, int line_width)
{
unsigned i = 0;
int k, counter;

View File

@ -217,10 +217,12 @@ void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size)
used = saved_lo & 0x3f;
if (used) {
if (used)
{
available = 64 - used;
if (size < available) {
if (size < available)
{
memcpy(&ctx->buffer[used], data, size);
return;
}
@ -231,7 +233,8 @@ void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size)
MD5_body(ctx, ctx->buffer, 64);
}
if (size >= 64) {
if (size >= 64)
{
data = MD5_body(ctx, data, size & ~(unsigned long)0x3f);
size &= 0x3f;
}
@ -249,7 +252,8 @@ void MD5_Final(unsigned char *result, MD5_CTX *ctx)
available = 64 - used;
if (available < 8) {
if (available < 8)
{
memset(&ctx->buffer[used], 0, available);
MD5_body(ctx, ctx->buffer, 64);
used = 0;