diff src/conversation.c @ 411:a330017b3aa4

[gaim-migrate @ 421] Trying to make things compile cleanly committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 15 Jun 2000 05:27:25 +0000
parents be408b41c172
children 6a92cd7322cc
line wrap: on
line diff
--- a/src/conversation.c	Thu Jun 15 00:50:59 2000 +0000
+++ b/src/conversation.c	Thu Jun 15 05:27:25 2000 +0000
@@ -154,7 +154,7 @@
 	s = gtk_editable_get_chars(GTK_EDITABLE(entry), 0, -1);
 	t = s;
 		
-	if (t = strstr(s, prefix))
+	if ((t = strstr(s, prefix)) != NULL)
 	{
 		for (i = 1; t[i] != '\0'; i++)
 		{
@@ -310,7 +310,7 @@
 void set_font_face(GtkWidget *widget, struct conversation *c)
 {
 	char *pre_fontface, *old_font_face;
-	int alloc = 0, length;
+	int alloc = 0;
 
 	if (!(font_options & OPT_FONT_FACE))
 		return;
@@ -330,7 +330,7 @@
 		pre_fontface = "<FONT FACE=\"Helvetica\">";
 	}
 
-	if (old_font_face = get_tag_by_prefix(c->entry, "<FONT FACE"))
+	if ((old_font_face = get_tag_by_prefix(c->entry, "<FONT FACE")) != NULL)
 	{	
 		remove_tags(c->entry, old_font_face);
 		remove_tags(c->entry, "</FONT>");