]> git.meshlink.io Git - meshlink/blobdiff - meshlink-sample/meshlinkapp.c
Get rid of tincremotehost structure, we use directly node_t
[meshlink] / meshlink-sample / meshlinkapp.c
index 0ec564e37b6f149b17c457e0706a9bc637420ba9..647e6b77630c66b05b2d14e664ae3d1a4899ebbf 100644 (file)
@@ -5,12 +5,12 @@ int main(int argc , char **argv){
 char *confbase = "/tmp/meshlink/";
 char *name = "test";
 
-tincremotehost* remotenode = malloc(sizeof(tincremotehost));
+node_t* remotenode = new_node();
 char *remotename = "nameofremotenode";
 
-//TODO: change this, calling a function that returns tincremotehost
+//TODO: change this, calling a function that returns node_t
+remotenode->name = malloc(16);
 remotenode->name = remotename;
-remotenode->publickey = NULL;
 
 tinc_setup(confbase, name);
 tinc_start(confbase);