apply coding rule 56/66156/1
authorJeesun Kim <iamjs.kim@samsung.com>
Fri, 15 Apr 2016 11:58:24 +0000 (20:58 +0900)
committerJeesun Kim <iamjs.kim@samsung.com>
Fri, 15 Apr 2016 11:58:35 +0000 (20:58 +0900)
Change-Id: Iedf26cb02e9330c199da7bf41e88c59e4180cc6a

server/ctsvc_number_utils.c
server/db/ctsvc_db_query.c

index 53d2699..fcb4317 100644 (file)
@@ -838,9 +838,8 @@ int ctsvc_clean_number(const char *src, char *dest, int dest_size, bool replace_
                                else if (0x9b == src[s_pos+2])   /* ef bc 9b : ';' */
                                        temp[pos++] = ';';
                        } else if (src[s_pos+1] == 0xbd) {
-                               if (0x81 <= src[s_pos+2] && src[s_pos+2] <= 0x9a) {
+                               if (0x81 <= src[s_pos+2] && src[s_pos+2] <= 0x9a)
                                        temp[pos++] = src[s_pos+2] - 0x40; /* ef bd 81 : 'a' ~ ef bd 9a : 'z' */
-                               }
                        }
                } else if (char_len == 1) {
                        if (0x41 <= src[s_pos] && src[s_pos] <= 0x5a)        /* 'A' ~ 'Z' */
index b751143..59ebef3 100644 (file)
@@ -1684,7 +1684,7 @@ static int __db_append_search_query(const char *keyword, char **query, int *quer
 
                if (range & CONTACTS_SEARCH_RANGE_NAME) {
                        int len_keyword = strlen(half_keyword);
-                       int len_chosung= 0;
+                       int len_chosung = 0;
                        char *chosung = NULL;
                        char *korean_pattern = NULL;
                        char *search_chosung = NULL;
@@ -1699,7 +1699,7 @@ static int __db_append_search_query(const char *keyword, char **query, int *quer
                                 */
                                chosung = calloc(len_keyword * 5, sizeof(char));
                                len_chosung = ctsvc_get_chosung(half_keyword, chosung, len_keyword * 5);
-                               mod_keyword = __ctsvc_db_make_search_keyword(0 < len_chosung? chosung : half_keyword);
+                               mod_keyword = __ctsvc_db_make_search_keyword(0 < len_chosung ? chosung : half_keyword);
                                break;
                        case CTSVC_LANG_JAPANESE:
                                mod_keyword = search_hiragana;