diff src/status.c @ 10009:c124bef68132

[gaim-migrate @ 10926] Thou shalt NULL terminate va_lists! This fixes the crash-at-startup bug I mentioned in my commit of Dave West's stuff last night. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 10 Sep 2004 19:51:52 +0000
parents 9baedaca25c7
children 56e34a659db2
line wrap: on
line diff
--- a/src/status.c	Fri Sep 10 04:43:31 2004 +0000
+++ b/src/status.c	Fri Sep 10 19:51:52 2004 +0000
@@ -171,8 +171,8 @@
  **************************************************************************/
 GaimStatusType *
 gaim_status_type_new_full(GaimStatusPrimitive primitive, const char *id,
-		const char *name, gboolean saveable,
-		gboolean user_settable, gboolean independent)
+						  const char *name, gboolean saveable,
+						  gboolean user_settable, gboolean independent)
 {
 	GaimStatusType *status_type;
 
@@ -194,7 +194,7 @@
 
 GaimStatusType *
 gaim_status_type_new(GaimStatusPrimitive primitive, const char *id,
-		const char *name, gboolean user_settable)
+					 const char *name, gboolean user_settable)
 {
 	g_return_val_if_fail(primitive != GAIM_STATUS_UNSET, NULL);
 	g_return_val_if_fail(id        != NULL,              NULL);
@@ -905,8 +905,8 @@
 	presence->context = context;
 
 	presence->status_table =
-	g_hash_table_new_full(g_str_hash, g_str_equal,
-	g_free, (GFreeFunc)gaim_status_destroy);
+		g_hash_table_new_full(g_str_hash, g_str_equal,
+							  g_free, (GFreeFunc)gaim_status_destroy);
 
 	return presence;
 }
@@ -915,6 +915,7 @@
 gaim_presence_new_for_account(GaimAccount *account)
 {
 	GaimPresence *presence;
+
 	g_return_val_if_fail(account != NULL, NULL);
 
 	presence = gaim_presence_new(GAIM_PRESENCE_CONTEXT_ACCOUNT);