Fri, 14 Dec 2018 08:03:43 +0000
Merged in default (pull request #453)
oscar: Remove dead usage of tm.tm_gmtoff and HAVE_TM_GMTOFF config
Approved-by: Elliott Sales de Andrade
Approved-by: Gary Kramlich
Approved-by: Eion Robb
| meson.build | file | annotate | diff | comparison | revisions |
--- a/libpurple/protocols/oscar/oscar.c Fri Dec 14 07:56:29 2018 +0000 +++ b/libpurple/protocols/oscar/oscar.c Fri Dec 14 08:03:43 2018 +0000 @@ -1689,7 +1689,8 @@ } static int -incomingim_chan4(OscarData *od, FlapConnection *conn, aim_userinfo_t *userinfo, struct aim_incomingim_ch4_args *args, time_t t) +incomingim_chan4(OscarData *od, FlapConnection *conn, aim_userinfo_t *userinfo, + struct aim_incomingim_ch4_args *args) { PurpleConnection *gc = od->gc; PurpleAccount *account = purple_connection_get_account(gc); @@ -1734,24 +1735,8 @@ /* If the message came from an ICQ user then escape any HTML */ tmp = g_markup_escape_text(msg2[0], -1); - if (t) { /* This is an offline message */ - /* The timestamp is UTC-ish, so we need to get the offset */ -#ifdef HAVE_TM_GMTOFF - time_t now; - struct tm *tm; - now = time(NULL); - tm = localtime(&now); - t += tm->tm_gmtoff; -#else -# ifdef HAVE_TIMEZONE - tzset(); - t -= timezone; -# endif -#endif - purple_serv_got_im(gc, uin, tmp, 0, t); - } else { /* This is a message from MacICQ/Miranda */ - purple_serv_got_im(gc, uin, tmp, 0, time(NULL)); - } + purple_serv_got_im(gc, uin, tmp, 0, time(NULL)); + g_free(uin); g_free(tmp); } @@ -1982,7 +1967,7 @@ case 4: { /* ICQ */ struct aim_incomingim_ch4_args *args; args = va_arg(ap, struct aim_incomingim_ch4_args *); - ret = incomingim_chan4(od, conn, userinfo, args, 0); + ret = incomingim_chan4(od, conn, userinfo, args); } break; default: {
--- a/meson.build Fri Dec 14 07:56:29 2018 +0000 +++ b/meson.build Fri Dec 14 08:03:43 2018 +0000 @@ -981,10 +981,6 @@ compiler.has_header('sys/socket.h')) #AC_VAR_TIMEZONE_EXTERNALS -conf.set('HAVE_TM_GMTOFF', - compiler.has_member('struct tm', 'tm_gmtoff', - prefix : '#include<time.h>')) - ####################################################################### # Disable pixmap installation #######################################################################