From: Nathan W. <fac...@us...> - 2003-11-17 22:50:51
|
Update of /cvsroot/gaim/gaim/plugins In directory sc8-pr-cvs1:/tmp/cvs-serv29745/plugins Modified Files: relnot.c Log Message: apparently mingwgcc can't handle my coolness Index: relnot.c =================================================================== RCS file: /cvsroot/gaim/gaim/plugins/relnot.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- relnot.c 17 Nov 2003 22:34:29 -0000 1.1 +++ relnot.c 17 Nov 2003 22:50:47 -0000 1.2 @@ -86,15 +86,17 @@ do_check(void) { int last_check = gaim_prefs_get_int("/plugins/gtk/relnot/last_check"); if(!last_check || time(NULL) - last_check > MIN_CHECK_INTERVAL) { - char *url = g_strdup_printf("http://gaim.sourceforge.net/version.php?version=%s&build=%s", gaim_core_get_version(), + const char *build; + char *url; #ifdef _WIN32 - "gaim-win32" + build = "gaim-win32"; #else - "gaim" + build = "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); } } |