Fixed the invalid casting and remove the flash noti
[platform/core/messaging/email-service.git] / email-common-use / email-utilities.c
index 770aa85..9c86fb5 100755 (executable)
@@ -112,10 +112,10 @@ INTERNAL_FUNC char *em_trim_right(char *str)
        if (!str) return NULL;
 
        p = str+EM_SAFE_STRLEN(str)-1;
-       while (((int)p >= (int)str) && (*p == ' ' || *p == '\t' || *p == LF || *p == CR))
+       while ((p >= str) && (*p == ' ' || *p == '\t' || *p == LF || *p == CR))
                *p --= '\0';
 
-       if ((int) p < (int)str)
+       if (p < str)
                return NULL;
 
        return str;