Enlightenment CVS committal

Author  : sarajervi
Project : misc
Module  : erss

Dir     : misc/erss/src


Modified Files:
        erss.c erss.h parse.c 


Log Message:
cleaned up in some config files and fixed variable typo causing segv (reported by dan 
sinclair)
===================================================================
RCS file: /cvsroot/enlightenment/misc/erss/src/erss.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- erss.c      11 Jan 2004 14:02:24 -0000      1.11
+++ erss.c      11 Jan 2004 23:23:56 -0000      1.12
@@ -23,7 +23,6 @@
 
 int erss_connect (void *data)
 {
-
        if (waiting_for_reply) {
                fprintf (stderr, "%s warning: client has not received all information 
", 
                                PACKAGE);
@@ -65,7 +64,6 @@
        total_connects++;
        last_time = strdup (time_format ());
        set_time (NULL);
-       
 
        return TRUE;
 }
@@ -188,7 +186,6 @@
        /*
         * We want to be connected before sending the request.
         */
-       
        if (total_connects == 1)
                printf ("%s info: sending HTTP request ...\n", PACKAGE);
 
===================================================================
RCS file: /cvsroot/enlightenment/misc/erss/src/erss.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- erss.h      25 Dec 2003 20:16:06 -0000      1.2
+++ erss.h      11 Jan 2004 23:23:56 -0000      1.3
@@ -25,6 +25,8 @@
 #include <errno.h>
 #include <time.h>
 
+#include <assert.h>
+
 #include "config.h"
 
 extern Evas *evas;
===================================================================
RCS file: /cvsroot/enlightenment/misc/erss/src/parse.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- parse.c     11 Jan 2004 14:02:24 -0000      1.8
+++ parse.c     11 Jan 2004 23:23:56 -0000      1.9
@@ -150,13 +150,7 @@
 
        if (get_end_story (buf))
        {
-               /*
-               if (item->description)
-                       printf ("[%s]\n", item->description);
-               */
-               
                ewd_list_append (list, item);
-
                return;
        }
 
@@ -179,12 +173,7 @@
                snprintf (text, i, " %s %s", cfg->prefix, c);
                
                item->obj = edje_object_add (evas);
-               edje_object_file_set (item->obj, 
-                               cfg->theme, "erss_item");
-               
-               if (text)
-                       edje_object_part_text_set (item->obj, "article", text);
-               
+               edje_object_file_set (item->obj, cfg->theme, "erss_item");
                evas_object_show (item->obj);
                
                evas_object_event_callback_add (item->obj,
@@ -193,10 +182,11 @@
                                EVAS_CALLBACK_MOUSE_OUT, cb_mouse_out, NULL);
                
                e_container_element_append(cont, item->obj);
-               
+               edje_object_part_text_set (item->obj, "article", text);
+
+               free (text); 
                free (c);
-               free (text);
-               
+
                return; 
        }
        
@@ -272,8 +262,7 @@
        memset(rc, 0, sizeof(Rc_Config));
        
        fp = fopen (file, "r");
-
-
+       
        while (fp && (line = get_next_line (fp)) != NULL)
        {
                if ((c = get_element (&line, "config")) != NULL)
@@ -337,7 +326,7 @@
        if (!rc->enc_from)
                rc->enc_from = strdup("utf8");
        if (!rc->enc_to)
-               rc->enc_from = strdup("iso-8859-1");
+               rc->enc_to = strdup("iso-8859-1");
        
        /* 
         * If there is no rc file return false for us to know




-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to