diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-08-24 20:13:05 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-08-24 20:13:07 +0200 |
commit | bdbf0844d8027289a48f12f6fd068413b7cc4884 (patch) | |
tree | 9aa61cd02796bd3e8bc01850d5f803a9d7bea2d0 /src/mds-registry/slave.c | |
parent | mds-kkbd: decipher mapping_query and fix a minor bug in it (diff) | |
download | mds-bdbf0844d8027289a48f12f6fd068413b7cc4884.tar.gz mds-bdbf0844d8027289a48f12f6fd068413b7cc4884.tar.bz2 mds-bdbf0844d8027289a48f12f6fd068413b7cc4884.tar.xz |
introduce the `Origin command`-header
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-registry/slave.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mds-registry/slave.c b/src/mds-registry/slave.c index b7f0456..a2f4005 100644 --- a/src/mds-registry/slave.c +++ b/src/mds-registry/slave.c @@ -40,11 +40,12 @@ */ static int slave_notify_client(slave_t* slave) { - char buf[sizeof("To: %s\nIn response to: %s\nMessage ID: %" PRIu32 "\n\n") / sizeof(char) + 41]; + char buf[sizeof("To: %s\nIn response to: %s\nMessage ID: %" PRIu32 "\nOrigin command: register\n\n") + / sizeof(char) + 41]; size_t ptr = 0, sent, left; /* Construct message headers. */ - sprintf(buf, "To: %s\nIn response to: %s\nMessage ID: %" PRIu32 "\n\n", + sprintf(buf, "To: %s\nIn response to: %s\nMessage ID: %" PRIu32 "\nOrigin command: register\n\n", slave->client_id, slave->message_id, message_id); /* Increase message ID. */ |