From 0f206a55eda5e4b1dc9959b2293674166221cd16 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Sat, 1 Jan 2005 18:57:19 +0000
Subject: [PATCH] remove extra test on !port

---
 Fltk/GmshServer.cpp        | 4 +---
 utils/solvers/GmshClient.c | 4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/Fltk/GmshServer.cpp b/Fltk/GmshServer.cpp
index dcdf046063..b3a901bb62 100644
--- a/Fltk/GmshServer.cpp
+++ b/Fltk/GmshServer.cpp
@@ -1,4 +1,4 @@
-/* $Id: GmshServer.cpp,v 1.22 2005-01-01 01:49:19 geuzaine Exp $ */
+/* $Id: GmshServer.cpp,v 1.23 2005-01-01 18:57:19 geuzaine Exp $ */
 /*
  * Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
  *
@@ -116,8 +116,6 @@ int Gmsh_StartClient(char *command, char *sockname)
   else{
     /* INET socket */
     port = strstr(sockname, ":");
-    if(!port)
-      return -1;  /* Error: Couldn't create socket */
     portno = atoi(port+1);
   }
 
diff --git a/utils/solvers/GmshClient.c b/utils/solvers/GmshClient.c
index 4a1b8c519a..e9bf922a7c 100644
--- a/utils/solvers/GmshClient.c
+++ b/utils/solvers/GmshClient.c
@@ -1,4 +1,4 @@
-/* $Id: GmshClient.c,v 1.9 2005-01-01 02:14:31 geuzaine Exp $ */
+/* $Id: GmshClient.c,v 1.10 2005-01-01 18:57:19 geuzaine Exp $ */
 /*
  * Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
  *
@@ -100,8 +100,6 @@ int Gmsh_Connect(char *sockname)
   else{
     /* INET socket */
     port = strstr(sockname, ":");
-    if(!port)
-      return -1; /* Error: Couldn't create socket */
     portno = atoi(port+1);
     remotelen = strlen(sockname) - strlen(port);
     if(remotelen > 0)
-- 
GitLab