Commit 5d3bf057 authored by osku's avatar osku

Add parens to return statements where they are missing (except in

ha_innodb.cc).
parent 5737acba
...@@ -2231,7 +2231,8 @@ buf_get_latched_pages_number(void) ...@@ -2231,7 +2231,8 @@ buf_get_latched_pages_number(void)
} }
mutex_exit(&(buf_pool->mutex)); mutex_exit(&(buf_pool->mutex));
return fixed_pages_number;
return(fixed_pages_number);
} }
/************************************************************************* /*************************************************************************
......
...@@ -2956,7 +2956,8 @@ loop: ...@@ -2956,7 +2956,8 @@ loop:
if so, immediately reject the command if the table is a if so, immediately reject the command if the table is a
temporary one. For now, this kludge will work. */ temporary one. For now, this kludge will work. */
if (reject_fks && (UT_LIST_GET_LEN(table->foreign_list) > 0)) { if (reject_fks && (UT_LIST_GET_LEN(table->foreign_list) > 0)) {
return DB_CANNOT_ADD_CONSTRAINT;
return(DB_CANNOT_ADD_CONSTRAINT);
} }
/**********************************************************/ /**********************************************************/
......
...@@ -220,7 +220,7 @@ os_thread_join( ...@@ -220,7 +220,7 @@ os_thread_join(
/*===========*/ /*===========*/
os_thread_id_t thread_id) /* in: id of the thread to join */ os_thread_id_t thread_id) /* in: id of the thread to join */
{ {
return pthread_join(thread_id, NULL); return(pthread_join(thread_id, NULL));
} }
#endif #endif
/********************************************************************* /*********************************************************************
......
...@@ -108,8 +108,10 @@ static char* srv_monitor_file_name; ...@@ -108,8 +108,10 @@ static char* srv_monitor_file_name;
static int inno_bcmp(register const char *s1, register const char *s2, static int inno_bcmp(register const char *s1, register const char *s2,
register uint len) register uint len)
{ {
while (len-- != 0 && *s1++ == *s2++) ; while ((len-- != 0) && (*s1++ == *s2++))
return len+1; ;
return(len + 1);
} }
#define memcmp(A,B,C) inno_bcmp((A),(B),(C)) #define memcmp(A,B,C) inno_bcmp((A),(B),(C))
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment