diff src/themes.c @ 4298:cddb50734169

[gaim-migrate @ 4552] faceprint cleans up after my messes committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sat, 11 Jan 2003 19:59:27 +0000
parents a723d060620a
children a23ae74677a2
line wrap: on
line diff
--- a/src/themes.c	Sat Jan 11 16:47:58 2003 +0000
+++ b/src/themes.c	Sat Jan 11 19:59:27 2003 +0000
@@ -23,6 +23,9 @@
 #include "ui.h"
 #include "gtkimhtml.h"
 #include <stdio.h>
+#include <string.h>
+#include <ctype.h>
+#include "gaim.h"
 
 struct smiley_list {
 	char *sml;
@@ -52,11 +55,10 @@
 	}
 }
 
-struct smiley_theme *load_smiley_theme(char *file, gboolean load)
+struct smiley_theme *load_smiley_theme(const char *file, gboolean load)
 {
 	FILE *f = fopen(file, "r");
 	char buf[256];
-	char sml[16];
 	char *i;
 	struct smiley_theme *theme=NULL;
 	struct smiley_list *list = NULL;
@@ -84,7 +86,6 @@
 			GSList *already_freed = NULL;
 			struct smiley_list *wer = current_smiley_theme->list;
 			while (wer) {
-				char *nds = !strcmp(wer->sml, "default") ? NULL : wer->sml;
 				GSList *already_freed = NULL;
 				while (wer->smileys) {
 					GtkIMHtmlSmiley *uio = wer->smileys->data;
@@ -205,7 +206,7 @@
 				 * We set the second argument to FALSE so that it doesn't load
 				 * the theme yet.
 				 */
-				if (smile = load_smiley_theme(path, FALSE)) {
+				if ((smile = load_smiley_theme(path, FALSE))) {
 					smiley_themes = g_slist_append(smiley_themes, smile);
 				}
 				g_free(path);