diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-11-15 17:45:01 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-11-15 17:45:01 +0100 |
commit | 5b6343f51a0913400c15392389668a019727a9a1 (patch) | |
tree | f611c044f47497d7cdc62617e9aa2b8005ebcd27 /src/status.c | |
parent | 89bf354b9175794972733c0940adceb225a88728 (diff) | |
download | fastd-5b6343f51a0913400c15392389668a019727a9a1.tar fastd-5b6343f51a0913400c15392389668a019727a9a1.zip |
Revert "Use peer specifier from log instead of the peer name for the status output"
This reverts commit be929dbe2dffa82ca1f91538f56a1bb0490000bd.
Diffstat (limited to 'src/status.c')
-rw-r--r-- | src/status.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/status.c b/src/status.c index 36a38b6..8e0c427 100644 --- a/src/status.c +++ b/src/status.c @@ -174,10 +174,7 @@ static void dump_status(int fd) { if (!fastd_peer_is_enabled(peer)) continue; - char name[1024]; - fastd_snprint_peer_str(name, sizeof(name), peer); - - json_object_object_add(peers, name, dump_peer(peer)); + json_object_object_add(peers, peer->name, dump_peer(peer)); } |