comparison src/protocols/msn/msn.c @ 4464:e926d3bdfd14

[gaim-migrate @ 4739] There is absolutely no need for a #ifdef _WIN32 here. Just removing it... We can rename on all platforms. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 29 Jan 2003 23:34:04 +0000
parents c22bbfd75fd6
children 8fbf1c989f2b
comparison
equal deleted inserted replaced
4463:c22bbfd75fd6 4464:e926d3bdfd14
1509 if (fclose(fd)) { 1509 if (fclose(fd)) {
1510 debug_printf("Error closing temp file: %s\n", strerror(errno)); 1510 debug_printf("Error closing temp file: %s\n", strerror(errno));
1511 unlink(md->passport); 1511 unlink(md->passport);
1512 g_free(md->passport); 1512 g_free(md->passport);
1513 } 1513 }
1514 #ifdef _WIN32
1515 else { 1514 else {
1516 /* Renaming file with .html extension, so that win32 open_url will work */ 1515 /*
1517 char* tmp; 1516 * Renaming file with .html extension, so that
1518 if((tmp=g_strdup_printf("%s.html", md->passport)) != NULL) { 1517 * win32 open_url will work.
1519 if(rename(md->passport, tmp) == 0) { 1518 */
1519 char *tmp;
1520 if ((tmp = g_strdup_printf("%s.html", md->passport)) != NULL) {
1521 if (rename(md->passport, tmp) == 0) {
1520 g_free(md->passport); 1522 g_free(md->passport);
1521 md->passport = tmp; 1523 md->passport = tmp;
1522 } else 1524 } else
1523 g_free(tmp); 1525 g_free(tmp);
1524 } 1526 }
1525 } 1527 }
1526 #endif
1527 } 1528 }
1528 } else if (!g_strncasecmp(buf, "SYN", 3)) { 1529 } else if (!g_strncasecmp(buf, "SYN", 3)) {
1529 } else if (!g_strncasecmp(buf, "USR", 3)) { 1530 } else if (!g_strncasecmp(buf, "USR", 3)) {
1530 } else if (!g_strncasecmp(buf, "XFR", 3)) { 1531 } else if (!g_strncasecmp(buf, "XFR", 3)) {
1531 char *host = strstr(buf, "SB"); 1532 char *host = strstr(buf, "SB");