Small fixes so tinc compiles out of the box on SunOS 5.8
[oweals/tinc.git] / src / protocol_edge.c
index bd473f15c714a621b8475cc572b2ce0dbc8ec41e..0ac9e7c80feafac3f5e62be6d2b6347ade589715 100644 (file)
@@ -17,7 +17,7 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id: protocol_edge.c,v 1.1.4.12 2002/09/09 21:24:48 guus Exp $
+    $Id: protocol_edge.c,v 1.1.4.14 2002/09/15 14:55:53 guus Exp $
 */
 
 #include "config.h"
@@ -45,7 +45,7 @@
 
 #include "system.h"
 
-int send_add_edge(connection_t * c, edge_t * e)
+int send_add_edge(connection_t *c, edge_t *e)
 {
        int x;
        char *address, *port;
@@ -63,7 +63,7 @@ int send_add_edge(connection_t * c, edge_t * e)
        return x;
 }
 
-int add_edge_h(connection_t * c)
+int add_edge_h(connection_t *c)
 {
        edge_t *e;
        node_t *from, *to;
@@ -174,7 +174,7 @@ int add_edge_h(connection_t * c)
        return 0;
 }
 
-int send_del_edge(connection_t * c, edge_t * e)
+int send_del_edge(connection_t *c, edge_t *e)
 {
        cp();
 
@@ -182,7 +182,7 @@ int send_del_edge(connection_t * c, edge_t * e)
                                                e->from->name, e->to->name);
 }
 
-int del_edge_h(connection_t * c)
+int del_edge_h(connection_t *c)
 {
        edge_t *e;
        char from_name[MAX_STRING_SIZE];
@@ -220,9 +220,7 @@ int del_edge_h(connection_t * c)
 
        if(!from) {
                if(debug_lvl >= DEBUG_PROTOCOL)
-                       syslog(LOG_ERR,
-                                  _
-                                  ("Got %s from %s (%s) which does not appear in the edge tree"),
+                       syslog(LOG_ERR, _("Got %s from %s (%s) which does not appear in the edge tree"),
                                   "DEL_EDGE", c->name, c->hostname);
                return 0;
        }
@@ -231,9 +229,7 @@ int del_edge_h(connection_t * c)
 
        if(!to) {
                if(debug_lvl >= DEBUG_PROTOCOL)
-                       syslog(LOG_ERR,
-                                  _
-                                  ("Got %s from %s (%s) which does not appear in the edge tree"),
+                       syslog(LOG_ERR, _("Got %s from %s (%s) which does not appear in the edge tree"),
                                   "DEL_EDGE", c->name, c->hostname);
                return 0;
        }
@@ -244,9 +240,7 @@ int del_edge_h(connection_t * c)
 
        if(!e) {
                if(debug_lvl >= DEBUG_PROTOCOL)
-                       syslog(LOG_WARNING,
-                                  _
-                                  ("Got %s from %s (%s) which does not appear in the edge tree"),
+                       syslog(LOG_WARNING, _("Got %s from %s (%s) which does not appear in the edge tree"),
                                   "DEL_EDGE", c->name, c->hostname);
                return 0;
        }