diff options
Diffstat (limited to 'plugins/MirOTR/libgcrypt-1.4.6/src')
-rw-r--r-- | plugins/MirOTR/libgcrypt-1.4.6/src/gcrypt.h | 2 | ||||
-rw-r--r-- | plugins/MirOTR/libgcrypt-1.4.6/src/gcryptrnd.c | 2 | ||||
-rw-r--r-- | plugins/MirOTR/libgcrypt-1.4.6/src/global.c | 10 | ||||
-rw-r--r-- | plugins/MirOTR/libgcrypt-1.4.6/src/misc.c | 2 | ||||
-rw-r--r-- | plugins/MirOTR/libgcrypt-1.4.6/src/missing-string.c | 4 | ||||
-rw-r--r-- | plugins/MirOTR/libgcrypt-1.4.6/src/sexp.c | 32 | ||||
-rw-r--r-- | plugins/MirOTR/libgcrypt-1.4.6/src/stdmem.c | 2 |
7 files changed, 27 insertions, 27 deletions
diff --git a/plugins/MirOTR/libgcrypt-1.4.6/src/gcrypt.h b/plugins/MirOTR/libgcrypt-1.4.6/src/gcrypt.h index 08112a7610..9e624d3572 100644 --- a/plugins/MirOTR/libgcrypt-1.4.6/src/gcrypt.h +++ b/plugins/MirOTR/libgcrypt-1.4.6/src/gcrypt.h @@ -1199,7 +1199,7 @@ void gcry_md_debug (gcry_md_hd_t hd, const char *suffix); #define gcry_md_putc(h,c) \ do { \ gcry_md_hd_t h__ = (h); \ - if( (h__)->bufpos == (h__)->bufsize ) \ + if ( (h__)->bufpos == (h__)->bufsize ) \ gcry_md_write( (h__), NULL, 0 ); \ (h__)->buf[(h__)->bufpos++] = (c) & 0xff; \ } while(0) diff --git a/plugins/MirOTR/libgcrypt-1.4.6/src/gcryptrnd.c b/plugins/MirOTR/libgcrypt-1.4.6/src/gcryptrnd.c index e15fecaf35..8aa3568837 100644 --- a/plugins/MirOTR/libgcrypt-1.4.6/src/gcryptrnd.c +++ b/plugins/MirOTR/libgcrypt-1.4.6/src/gcryptrnd.c @@ -202,7 +202,7 @@ disable_core_dumps (void) if (getrlimit (RLIMIT_CORE, &limit)) limit.rlim_max = 0; limit.rlim_cur = 0; - if( !setrlimit (RLIMIT_CORE, &limit) ) + if ( !setrlimit (RLIMIT_CORE, &limit) ) return 0; if (errno != EINVAL && errno != ENOSYS) logit (LOG_ERR, "can't disable core dumps: %s\n", strerror (errno)); diff --git a/plugins/MirOTR/libgcrypt-1.4.6/src/global.c b/plugins/MirOTR/libgcrypt-1.4.6/src/global.c index a69513e7d5..7c73f14a99 100644 --- a/plugins/MirOTR/libgcrypt-1.4.6/src/global.c +++ b/plugins/MirOTR/libgcrypt-1.4.6/src/global.c @@ -167,7 +167,7 @@ parse_version_number( const char *s, int *number ) { int val = 0; - if( *s == '0' && isdigit(s[1]) ) + if ( *s == '0' && isdigit(s[1]) ) return NULL; /* leading zeros are not allowed */ for ( ; isdigit(*s); s++ ) { val *= 10; @@ -190,15 +190,15 @@ static const char * parse_version_string( const char *s, int *major, int *minor, int *micro ) { s = parse_version_number( s, major ); - if( !s || *s != '.' ) + if ( !s || *s != '.' ) return NULL; s++; s = parse_version_number( s, minor ); - if( !s || *s != '.' ) + if ( !s || *s != '.' ) return NULL; s++; s = parse_version_number( s, micro ); - if( !s ) + if ( !s ) return NULL; return s; /* patchlevel */ } @@ -788,7 +788,7 @@ _gcry_check_heap( const void *a ) /* FIXME: implement this*/ #if 0 - if( some_handler ) + if ( some_handler ) some_handler(a) else _gcry_private_check_heap(a) diff --git a/plugins/MirOTR/libgcrypt-1.4.6/src/misc.c b/plugins/MirOTR/libgcrypt-1.4.6/src/misc.c index fcad8d4e3b..0146c61273 100644 --- a/plugins/MirOTR/libgcrypt-1.4.6/src/misc.c +++ b/plugins/MirOTR/libgcrypt-1.4.6/src/misc.c @@ -48,7 +48,7 @@ gcry_set_gettext_handler( const char *(*f)(const char*) ) const char * _gcry_gettext( const char *key ) { - if( user_gettext_handler ) + if ( user_gettext_handler ) return user_gettext_handler( key ); /* FIXME: switch the domain to gnupg and restore later */ return key; diff --git a/plugins/MirOTR/libgcrypt-1.4.6/src/missing-string.c b/plugins/MirOTR/libgcrypt-1.4.6/src/missing-string.c index a5e56c3f76..c5f4c83f70 100644 --- a/plugins/MirOTR/libgcrypt-1.4.6/src/missing-string.c +++ b/plugins/MirOTR/libgcrypt-1.4.6/src/missing-string.c @@ -45,8 +45,8 @@ stpcpy(char *a,const char *b) int strcasecmp( const char *a, const char *b ) { - for( ; *a && *b; a++, b++ ) { - if( *a != *b && toupper(*a) != toupper(*b) ) + for ( ; *a && *b; a++, b++ ) { + if ( *a != *b && toupper(*a) != toupper(*b) ) break; } return *(const byte*)a - *(const byte*)b; diff --git a/plugins/MirOTR/libgcrypt-1.4.6/src/sexp.c b/plugins/MirOTR/libgcrypt-1.4.6/src/sexp.c index e11f86ec0a..865e7d7a88 100644 --- a/plugins/MirOTR/libgcrypt-1.4.6/src/sexp.c +++ b/plugins/MirOTR/libgcrypt-1.4.6/src/sexp.c @@ -84,9 +84,9 @@ dump_mpi( gcry_mpi_t a ) char buffer[1000];
size_t n = 1000;
- if( !a )
+ if ( !a )
fputs("[no MPI]", stderr );
- else if( gcry_mpi_print( GCRYMPI_FMT_HEX, buffer, &n, a ) )
+ else if ( gcry_mpi_print( GCRYMPI_FMT_HEX, buffer, &n, a ) )
fputs("[MPI too large to print]", stderr );
else
fputs( buffer, stderr );
@@ -100,17 +100,17 @@ dump_string (const byte *p, size_t n, int delim ) {
if ((*p & 0x80) || iscntrl( *p ) || *p == delim )
{
- if( *p == '\n' )
+ if ( *p == '\n' )
log_printf ("\\n");
- else if( *p == '\r' )
+ else if ( *p == '\r' )
log_printf ("\\r");
- else if( *p == '\f' )
+ else if ( *p == '\f' )
log_printf ("\\f");
- else if( *p == '\v' )
+ else if ( *p == '\v' )
log_printf ("\\v");
- else if( *p == '\b' )
+ else if ( *p == '\b' )
log_printf ("\\b");
- else if( !*p )
+ else if ( !*p )
log_printf ("\\0");
else
log_printf ("\\x%02x", *p );
@@ -145,7 +145,7 @@ gcry_sexp_dump (const gcry_sexp_t a) indent++;
break;
case ST_CLOSE:
- if( indent )
+ if ( indent )
indent--;
log_printf ("%*s[close]\n", 2*indent, "");
break;
@@ -831,19 +831,19 @@ hextobyte( const byte *s ) {
int c=0;
- if( *s >= '0' && *s <= '9' )
+ if ( *s >= '0' && *s <= '9' )
c = 16 * (*s - '0');
- else if( *s >= 'A' && *s <= 'F' )
+ else if ( *s >= 'A' && *s <= 'F' )
c = 16 * (10 + *s - 'A');
- else if( *s >= 'a' && *s <= 'f' ) {
+ else if ( *s >= 'a' && *s <= 'f' ) {
c = 16 * (10 + *s - 'a');
}
s++;
- if( *s >= '0' && *s <= '9' )
+ if ( *s >= '0' && *s <= '9' )
c += *s - '0';
- else if( *s >= 'A' && *s <= 'F' )
+ else if ( *s >= 'A' && *s <= 'F' )
c += 10 + *s - 'A';
- else if( *s >= 'a' && *s <= 'f' ) {
+ else if ( *s >= 'a' && *s <= 'f' ) {
c += 10 + *s - 'a';
}
return c;
@@ -942,7 +942,7 @@ unquote_string (const char *string, size_t length, unsigned char *buf) }
esc = 0;
}
- else if( *s == '\\' )
+ else if ( *s == '\\' )
esc = 1;
else
*d++ = *s;
diff --git a/plugins/MirOTR/libgcrypt-1.4.6/src/stdmem.c b/plugins/MirOTR/libgcrypt-1.4.6/src/stdmem.c index bb8adeabec..14a7691563 100644 --- a/plugins/MirOTR/libgcrypt-1.4.6/src/stdmem.c +++ b/plugins/MirOTR/libgcrypt-1.4.6/src/stdmem.c @@ -160,7 +160,7 @@ _gcry_private_realloc ( void *a, size_t n ) len = p[-4]; len |= p[-3] << 8; len |= p[-2] << 16; - if( len >= n ) /* We don't shrink for now. */ + if ( len >= n ) /* We don't shrink for now. */ return a; if (p[-1] == MAGIC_SEC_BYTE) b = _gcry_private_malloc_secure(n); |