Mercurial > pidgin.yaz
diff libpurple/protocols/myspace/myspace.h @ 16749:0fa4a3e9b318
Stylistic improvements - use type *name instead of type* name for pointers
everywhere. Now "egrep '[0-9A-Za-z][*]' *.c *.h" shows nothing.
author | Jeffrey Connelly <jaconnel@calpoly.edu> |
---|---|
date | Thu, 31 May 2007 03:06:38 +0000 |
parents | da7621e799b7 |
children | 793301c04e3a |
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.h Thu May 31 02:17:03 2007 +0000 +++ b/libpurple/protocols/myspace/myspace.h Thu May 31 03:06:38 2007 +0000 @@ -85,14 +85,14 @@ /* Constants */ #define HASH_SIZE 0x14 /**< Size of SHA-1 hash for login */ #define NONCE_SIZE 0x20 /**< Half of decoded 'nc' field */ -#define MSIM_READ_BUF_SIZE 5*1024 /**< Receive buffer size */ +#define MSIM_READ_BUF_SIZE 5 * 1024 /**< Receive buffer size */ #define MSIM_FINAL_STRING "\\final\\" /**< Message end marker */ /* Messages */ #define MSIM_BM_INSTANT 1 #define MSIM_BM_STATUS 100 #define MSIM_BM_ACTION 121 -/*#define MSIM_BM_UNKNOWN1 122*/ +/* #define MSIM_BM_UNKNOWN1 122 */ /* Authentication algorithm for login2 */ #define MSIM_AUTH_ALGORITHM 196610 @@ -146,10 +146,10 @@ /* TODO: move these three functions to message.c/h */ gchar *msim_unescape(const gchar *msg); gchar *msim_escape(const gchar *msg); -gchar *str_replace(const gchar* str, const gchar *old, const gchar *new); +gchar *str_replace(const gchar *str, const gchar *old, const gchar *new); -GHashTable *msim_parse(gchar* msg); -GHashTable* msim_parse_body(const gchar *body_str); +GHashTable *msim_parse(gchar *msg); +GHashTable *msim_parse_body(const gchar *body_str); void print_hash_item(gpointer key, gpointer value, gpointer user_data); gboolean msim_send_raw(MsimSession *session, const gchar *msg); @@ -159,8 +159,8 @@ void msim_login(PurpleAccount *acct); int msim_login_challenge(MsimSession *session, GHashTable *table); -gchar* msim_compute_login_response(guchar nonce[2*NONCE_SIZE], - gchar* email, gchar* password, guint *response_len); +gchar *msim_compute_login_response(guchar nonce[2 * NONCE_SIZE], + gchar *email, gchar *password, guint *response_len); int msim_send_im(PurpleConnection *gc, const char *who, const char *message, PurpleMessageFlags flags);