Mercurial > pidgin
diff libpurple/example/nullclient.c @ 23558:05d3447fb34e
disapproval of revision '3d39da6c8014095cac3a0741bf6fc26219e7aff8'
| author | Daniel Atallah <daniel.atallah@gmail.com> |
|---|---|
| date | Thu, 17 Jul 2008 04:49:35 +0000 |
| parents | aaaff38e144f |
| children |
line wrap: on
line diff
--- a/libpurple/example/nullclient.c Thu Jul 17 04:38:07 2008 +0000 +++ b/libpurple/example/nullclient.c Thu Jul 17 04:49:35 2008 +0000 @@ -27,12 +27,7 @@ #include <signal.h> #include <string.h> -#ifndef _WIN32 #include <unistd.h> -#else -#include "win32/win32dep.h" -#endif - #include "defines.h" @@ -85,11 +80,7 @@ if (condition & PURPLE_INPUT_WRITE) cond |= PURPLE_GLIB_WRITE_COND; -#if defined _WIN32 && !defined WINPIDGIN_USE_GLIB_IO_CHANNEL - channel = wpurple_g_io_channel_win32_new_socket(fd); -#else channel = g_io_channel_unix_new(fd); -#endif closure->result = g_io_add_watch_full(channel, G_PRIORITY_DEFAULT, cond, purple_glib_io_invoke, closure, purple_glib_io_destroy); @@ -262,14 +253,12 @@ PurpleSavedStatus *status; char *res; -#ifndef _WIN32 /* libpurple's built-in DNS resolution forks processes to perform * blocking lookups without blocking the main process. It does not * handle SIGCHLD itself, so if the UI does not you quickly get an army * of zombie subprocesses marching around. */ signal(SIGCHLD, SIG_IGN); -#endif init_libpurple(); @@ -305,8 +294,7 @@ account = purple_account_new(name, prpl); /* Get the password for the account */ - //password = getpass("Password: "); - password = ""; + password = getpass("Password: "); purple_account_set_password(account, password); /* It's necessary to enable the account first. */
