Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

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


Modified Files:
        ecore_con.c 


Log Message:


if port < 0 then drop port number

===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_con/ecore_con.c,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -3 -r1.93 -r1.94
--- ecore_con.c 18 Feb 2008 06:41:52 -0000      1.93
+++ ecore_con.c 2 Mar 2008 08:39:21 -0000       1.94
@@ -199,7 +199,12 @@
          {
             mask = 0;
             if (name[0] == '/')
-              snprintf(buf, sizeof(buf), "%s|%i", name, port);
+              {
+                 if (port >= 0)
+                   snprintf(buf, sizeof(buf), "%s|%i", name, port);
+                 else
+                   snprintf(buf, sizeof(buf), "%s", name);
+              }
             else
               snprintf(buf, sizeof(buf), "/tmp/.ecore_service|%s|%i", name, 
port);
          }



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to