Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_x


Modified Files:
        ecore_x_selection.c 


Log Message:
Don't print bogus error messages.

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_selection.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -3 -r1.26 -r1.27
--- ecore_x_selection.c 16 May 2005 12:59:26 -0000      1.26
+++ ecore_x_selection.c 7 Oct 2005 18:18:17 -0000       1.27
@@ -626,8 +626,8 @@
    int i, is;
    char *tmp;
 
-   if (strcmp(target, "text/uri-list")
-       && strcmp(target, "_NETSCAPE_URL"))
+   if (strcmp(target, "text/uri-list") &&
+       strcmp(target, "_NETSCAPE_URL"))
      return NULL;
 
    sel = calloc(1, sizeof(Ecore_X_Selection_Data_Files));
@@ -636,7 +636,6 @@
    if (data[size - 1])
      {
        /* Isn't nul terminated */
-       printf("BUG: isn't nul terminated!\n");
        size++;
        data = realloc(data, size);
        data[size - 1] = 0;
@@ -653,16 +652,14 @@
          }
        else
          {
-            if ((data[is] != '\r')
-                  && (data[is] != '\n'))
+            if ((data[is] != '\r') &&
+                (data[is] != '\n'))
               {
                  tmp[i++] = data[is++];
               }
             else
               {
-                 while ((data[is] == '\r')
-                       || (data[is] == '\n'))
-                   is++;
+                 while ((data[is] == '\r') || (data[is] == '\n')) is++;
                  tmp[i] = 0;
                  sel->num_files++;
                  sel->files = realloc(sel->files, sel->num_files * sizeof(char 
*));
@@ -712,7 +709,6 @@
    if (data[size - 1])
      {
        /* Isn't nul terminated */
-       printf("BUG: isn't nul terminated!\n");
        size++;
        data = realloc(data, size);
        data[size - 1] = 0;




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to