Mercurial > pidgin.yaz
changeset 7546:d60db7634542
[gaim-migrate @ 8160]
false alarm, win32 isn't as dumb as it looks
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 17 Nov 2003 22:55:41 +0000 |
parents | c81c18d63a09 |
children | ddba7ceebace |
files | plugins/relnot.c |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/relnot.c Mon Nov 17 22:50:47 2003 +0000 +++ b/plugins/relnot.c Mon Nov 17 22:55:41 2003 +0000 @@ -86,14 +86,13 @@ { int last_check = gaim_prefs_get_int("/plugins/gtk/relnot/last_check"); if(!last_check || time(NULL) - last_check > MIN_CHECK_INTERVAL) { - const char *build; - char *url; + char *url = g_strdup_printf("http://gaim.sourceforge.net/version.php?version=%s&build=%s", gaim_core_get_version(), #ifdef _WIN32 - build = "gaim-win32"; + "gaim-win32" #else - build = "gaim"; + "gaim" #endif - url = g_strdup_printf("http://gaim.sourceforge.net/version.php?version=%s&build=%s", gaim_core_get_version(), build); + ); gaim_url_fetch(url, TRUE, NULL, FALSE, version_fetch_cb, NULL); gaim_prefs_set_int("/plugins/gtk/relnot/last_check", time(NULL)); g_free(url);