summaryrefslogtreecommitdiff
path: root/usr.sbin/relayctl/relayctl.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-02-01 21:57:19 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-02-01 21:57:19 +0000
commit80e2cacb03ef09a91b50be9b698fc53883e89b91 (patch)
tree97bbf1cfc0f89395af089f7d572d8eb98f50e084 /usr.sbin/relayctl/relayctl.c
parent38440244b554d891b09ea6f821edf556b581569a (diff)
print id name in the monitor output if available
Diffstat (limited to 'usr.sbin/relayctl/relayctl.c')
-rw-r--r--usr.sbin/relayctl/relayctl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/relayctl/relayctl.c b/usr.sbin/relayctl/relayctl.c
index d23ede5aff5..32e1ffad95c 100644
--- a/usr.sbin/relayctl/relayctl.c
+++ b/usr.sbin/relayctl/relayctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relayctl.c,v 1.11 2007/02/01 21:01:10 reyk Exp $ */
+/* $OpenBSD: relayctl.c,v 1.12 2007/02/01 21:57:18 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -248,6 +248,8 @@ monitor_id(struct imsg *imsg)
memcpy(&id, imsg->data, sizeof(id));
printf("\tid: %u\n", id.id);
+ if (strlen(id.name))
+ printf("\tname: %s\n", id.name);
}
int