summaryrefslogtreecommitdiff
path: root/src/master.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2014-11-15 20:56:40 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2014-11-15 20:56:40 +0100
commit9594857ea2b95675fc8c393aa4da21baa3d0f7f8 (patch)
tree20322af94fb9d25119b84500601d423360853b84 /src/master.c
parent8a008f55fa16b4388e49a21301bf84c7e4a2b2f7 (diff)
downloadbiruda-9594857ea2b95675fc8c393aa4da21baa3d0f7f8.tar.gz
biruda-9594857ea2b95675fc8c393aa4da21baa3d0f7f8.tar.bz2
..
Diffstat (limited to 'src/master.c')
-rw-r--r--src/master.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/master.c b/src/master.c
index 3cd2173..84fd062 100644
--- a/src/master.c
+++ b/src/master.c
@@ -105,6 +105,8 @@ NEXT_DISCOVER:
json_object *obj = json_object_new_object( );
json_object *op = json_object_new_string( "discover" );
json_object_object_add( obj, "op", op );
+ json_object *role = json_object_new_string( "master" );
+ json_object_object_add( obj, "role", role );
const char *msg = json_object_to_json_string( obj );
int msg_size = strlen( msg ) + 1;
printf( "master send: %s\n", msg );