Mercurial > pidgin.yaz
diff src/gaimrc.c @ 3717:988485669631
[gaim-migrate @ 3850]
Warning fixes and WIN32 ifdef removals
committer: Tailor Script <tailor@pidgin.im>
author | Herman Bloggs <hermanator12002@yahoo.com> |
---|---|
date | Wed, 16 Oct 2002 19:57:03 +0000 |
parents | 0f468c22c702 |
children | 2567aabdf624 |
line wrap: on
line diff
--- a/src/gaimrc.c Wed Oct 16 19:44:19 2002 +0000 +++ b/src/gaimrc.c Wed Oct 16 19:57:03 2002 +0000 @@ -1220,13 +1220,8 @@ else if (gaim_home_dir()) g_snprintf(buf, sizeof(buf), "%s" G_DIR_SEPARATOR_S ".gaimrc", gaim_home_dir()); else { -#ifndef _WIN32 set_defaults(); return; -#else - /* Pre Win 2000 there are no home dirs... */ - g_snprintf(buf, sizeof(buf), "C:" G_DIR_SEPARATOR_S ".gaimrc"); -#endif } if ((f = fopen(buf, "r"))) { @@ -1291,12 +1286,7 @@ g_snprintf(buf, sizeof(buf), "%s" G_DIR_SEPARATOR_S ".gaimrc", gaim_home_dir()); } else { -#ifndef _WIN32 return; -#else - /* Pre Win 2000, there are no home dirs.. */ - g_snprintf(buf, sizeof(buf), "C:" G_DIR_SEPARATOR_S ".gaimrc"); -#endif } if ((f = fopen(buf, "w"))) { fprintf(f, "# .gaimrc v%d\n", 4); @@ -1310,9 +1300,8 @@ #endif gaimrc_write_proxy(f); fclose(f); -#ifndef _WIN32 + chmod(buf, S_IRUSR | S_IWUSR); -#endif } else debug_printf("Error opening .gaimrc\n");