X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=meshlink-sample%2Fmeshlinkapp.c;h=647e6b77630c66b05b2d14e664ae3d1a4899ebbf;hb=a337cef0be4a75ff0f4d88264d242444240fcc66;hp=0ec564e37b6f149b17c457e0706a9bc637420ba9;hpb=b226232d74099ddd92d3b61ee31051b71e678aa9;p=meshlink diff --git a/meshlink-sample/meshlinkapp.c b/meshlink-sample/meshlinkapp.c index 0ec564e3..647e6b77 100644 --- a/meshlink-sample/meshlinkapp.c +++ b/meshlink-sample/meshlinkapp.c @@ -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);