Fix gcc 3.0 warnings.
[tinc] / src / connection.c
index c1acfea..8164cb4 100644 (file)
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id: connection.c,v 1.1.2.10 2001/03/04 13:59:25 guus Exp $
+    $Id: connection.c,v 1.1.2.12 2001/06/29 13:09:55 guus Exp $
 */
 
 #include "config.h"
 
 #include <stdio.h>
 #include <syslog.h>
+#include <string.h>
 
 #include <avl_tree.h>
 #include <list.h>
@@ -88,7 +89,7 @@ void free_connection(connection_t *p)
 cp
   if(p->queue)
     list_delete_list(p->queue);
-  if(p->name && p->name!=unknown)
+  if(p->name)
     free(p->name);
   if(p->hostname)
     free(p->hostname);