Mercurial > pidgin
diff src/protocols/zephyr/zephyr.c @ 3630:9682c0e022c6
[gaim-migrate @ 3753]
Yeah this will probably break a lot of shit knowing my luck. But hey, I really don't care what people thnk.
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Fri, 11 Oct 2002 03:14:01 +0000 |
parents | bdd0bebd2d04 |
children | 43e396e94095 |
line wrap: on
line diff
--- a/src/protocols/zephyr/zephyr.c Fri Oct 11 02:10:08 2002 +0000 +++ b/src/protocols/zephyr/zephyr.c Fri Oct 11 03:14:01 2002 +0000 @@ -86,17 +86,17 @@ /* just for debugging static void handle_unknown(ZNotice_t notice) { - g_print("z_packet: %s\n", notice.z_packet); - g_print("z_version: %s\n", notice.z_version); - g_print("z_kind: %d\n", notice.z_kind); - g_print("z_class: %s\n", notice.z_class); - g_print("z_class_inst: %s\n", notice.z_class_inst); - g_print("z_opcode: %s\n", notice.z_opcode); - g_print("z_sender: %s\n", notice.z_sender); - g_print("z_recipient: %s\n", notice.z_recipient); - g_print("z_message: %s\n", notice.z_message); - g_print("z_message_len: %d\n", notice.z_message_len); - g_print("\n"); + debug_printf("z_packet: %s\n", notice.z_packet); + debug_printf("z_version: %s\n", notice.z_version); + debug_printf("z_kind: %d\n", notice.z_kind); + debug_printf("z_class: %s\n", notice.z_class); + debug_printf("z_class_inst: %s\n", notice.z_class_inst); + debug_printf("z_opcode: %s\n", notice.z_opcode); + debug_printf("z_sender: %s\n", notice.z_sender); + debug_printf("z_recipient: %s\n", notice.z_recipient); + debug_printf("z_message: %s\n", notice.z_message); + debug_printf("z_message_len: %d\n", notice.z_message_len); + debug_printf("\n"); } */ @@ -499,7 +499,7 @@ gchar *fname; gchar buff[BUFSIZ]; - fname = g_strdup_printf("%s/.zephyr.subs", g_getenv("HOME")); + fname = g_strdup_printf("%s/.zephyr.subs", gaim_home_dir()); f = fopen(fname, "r"); if (f) { char **triple; @@ -566,7 +566,7 @@ FILE *fd; gchar buff[BUFSIZ], *filename; - filename = g_strconcat(g_get_home_dir(), "/.anyone", NULL); + filename = g_strconcat(gaim_home_dir(), "/.anyone", NULL); if ((fd = fopen(filename, "r")) != NULL) { while (fgets(buff, BUFSIZ, fd)) { strip_comments(buff); @@ -623,7 +623,7 @@ char *fname; char** triple; - fname = g_strdup_printf("%s/.zephyr.subs", g_get_home_dir()); + fname = g_strdup_printf("%s/.zephyr.subs", gaim_home_dir()); fd = fopen(fname, "w"); if (!fd) { @@ -660,7 +660,7 @@ char *ptr, *fname, *ptr2; FILE *fd; - fname = g_strdup_printf("%s/.anyone", g_get_home_dir()); + fname = g_strdup_printf("%s/.anyone", gaim_home_dir()); fd = fopen(fname, "w"); if (!fd) { g_free(fname);