{
static GDate date;
- /* FIXME: deprecated in newer glib versions */
- g_date_set_time (&date, (GTime) timet);
+#if MODEST_PLATFORM_ID==1 /* gtk */
+ g_date_set_time_t (&date, timet);
+#elif MODEST_PLATFORM_ID==2 /* hildon (maemo) */
+ g_date_set_time (&date, (GTime) timet);
+#endif
return g_date_strftime (s, max, fmt, (const GDate*) &date);
}
modest_text_utils_validate_email_address (const gchar *email_address)
{
int count = 0;
- const gchar *c, *domain;
+ const gchar *c = NULL, *domain = NULL;
static gchar *rfc822_specials = "()<>@,;:\\\"[]";
/* first we validate the name portion (name@domain) */