summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2006-12-16 15:02:36 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2006-12-16 15:02:36 +0000
commit38265a8de2c57a407626e320d797b1241f9746aa (patch)
tree233cb9a8d7b38a215d3372b4d2d75ea139092e60
parent8f208109f89ebfb11d1960c8cd67b596d07e6c82 (diff)
more spacing
-rw-r--r--usr.sbin/hostatectl/hostatectl.c17
-rw-r--r--usr.sbin/hoststatectl/hoststatectl.c17
-rw-r--r--usr.sbin/relayctl/relayctl.c17
3 files changed, 24 insertions, 27 deletions
diff --git a/usr.sbin/hostatectl/hostatectl.c b/usr.sbin/hostatectl/hostatectl.c
index 68b75e01df6..957cb0fe816 100644
--- a/usr.sbin/hostatectl/hostatectl.c
+++ b/usr.sbin/hostatectl/hostatectl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hostatectl.c,v 1.3 2006/12/16 14:21:15 bernd Exp $ */
+/* $OpenBSD: hostatectl.c,v 1.4 2006/12/16 15:02:35 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -104,27 +104,27 @@ main(int argc, char *argv[])
break;
case SERV_ENABLE:
imsg_compose(ibuf, IMSG_CTL_SERVICE_ENABLE, 0, 0,
- &res->id, sizeof(res->id));
+ &res->id, sizeof(res->id));
break;
case SERV_DISABLE:
imsg_compose(ibuf, IMSG_CTL_SERVICE_DISABLE, 0, 0,
- &res->id, sizeof(res->id));
+ &res->id, sizeof(res->id));
break;
case TABLE_ENABLE:
imsg_compose(ibuf, IMSG_CTL_TABLE_ENABLE, 0, 0,
- &res->id, sizeof(res->id));
+ &res->id, sizeof(res->id));
break;
case TABLE_DISABLE:
imsg_compose(ibuf, IMSG_CTL_TABLE_DISABLE, 0, 0,
- &res->id, sizeof(res->id));
+ &res->id, sizeof(res->id));
break;
case HOST_ENABLE:
imsg_compose(ibuf, IMSG_CTL_HOST_ENABLE, 0, 0,
- &res->id, sizeof(res->id));
+ &res->id, sizeof(res->id));
break;
case HOST_DISABLE:
imsg_compose(ibuf, IMSG_CTL_HOST_DISABLE, 0, 0,
- &res->id, sizeof(res->id));
+ &res->id, sizeof(res->id));
break;
case SHUTDOWN:
imsg_compose(ibuf, IMSG_CTL_SHUTDOWN, 0, 0, NULL, 0);
@@ -252,8 +252,7 @@ print_table_status(int up, int fl)
} else if (!up) {
snprintf(buf, sizeof(buf) - 1, "empty");
} else
- snprintf(buf, sizeof(buf) - 1, "active (%d hosts up)",
- up);
+ snprintf(buf, sizeof(buf) - 1, "active (%d hosts up)", up);
return (buf);
}
diff --git a/usr.sbin/hoststatectl/hoststatectl.c b/usr.sbin/hoststatectl/hoststatectl.c
index caa746546e6..e1842d42b30 100644
--- a/usr.sbin/hoststatectl/hoststatectl.c
+++ b/usr.sbin/hoststatectl/hoststatectl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hoststatectl.c,v 1.3 2006/12/16 14:21:15 bernd Exp $ */
+/* $OpenBSD: hoststatectl.c,v 1.4 2006/12/16 15:02:35 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -104,27 +104,27 @@ main(int argc, char *argv[])
break;
case SERV_ENABLE:
imsg_compose(ibuf, IMSG_CTL_SERVICE_ENABLE, 0, 0,
- &res->id, sizeof(res->id));
+ &res->id, sizeof(res->id));
break;
case SERV_DISABLE:
imsg_compose(ibuf, IMSG_CTL_SERVICE_DISABLE, 0, 0,
- &res->id, sizeof(res->id));
+ &res->id, sizeof(res->id));
break;
case TABLE_ENABLE:
imsg_compose(ibuf, IMSG_CTL_TABLE_ENABLE, 0, 0,
- &res->id, sizeof(res->id));
+ &res->id, sizeof(res->id));
break;
case TABLE_DISABLE:
imsg_compose(ibuf, IMSG_CTL_TABLE_DISABLE, 0, 0,
- &res->id, sizeof(res->id));
+ &res->id, sizeof(res->id));
break;
case HOST_ENABLE:
imsg_compose(ibuf, IMSG_CTL_HOST_ENABLE, 0, 0,
- &res->id, sizeof(res->id));
+ &res->id, sizeof(res->id));
break;
case HOST_DISABLE:
imsg_compose(ibuf, IMSG_CTL_HOST_DISABLE, 0, 0,
- &res->id, sizeof(res->id));
+ &res->id, sizeof(res->id));
break;
case SHUTDOWN:
imsg_compose(ibuf, IMSG_CTL_SHUTDOWN, 0, 0, NULL, 0);
@@ -252,8 +252,7 @@ print_table_status(int up, int fl)
} else if (!up) {
snprintf(buf, sizeof(buf) - 1, "empty");
} else
- snprintf(buf, sizeof(buf) - 1, "active (%d hosts up)",
- up);
+ snprintf(buf, sizeof(buf) - 1, "active (%d hosts up)", up);
return (buf);
}
diff --git a/usr.sbin/relayctl/relayctl.c b/usr.sbin/relayctl/relayctl.c
index 93b60588825..50b7cbd5e14 100644
--- a/usr.sbin/relayctl/relayctl.c
+++ b/usr.sbin/relayctl/relayctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relayctl.c,v 1.3 2006/12/16 14:21:15 bernd Exp $ */
+/* $OpenBSD: relayctl.c,v 1.4 2006/12/16 15:02:35 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -104,27 +104,27 @@ main(int argc, char *argv[])
break;
case SERV_ENABLE:
imsg_compose(ibuf, IMSG_CTL_SERVICE_ENABLE, 0, 0,
- &res->id, sizeof(res->id));
+ &res->id, sizeof(res->id));
break;
case SERV_DISABLE:
imsg_compose(ibuf, IMSG_CTL_SERVICE_DISABLE, 0, 0,
- &res->id, sizeof(res->id));
+ &res->id, sizeof(res->id));
break;
case TABLE_ENABLE:
imsg_compose(ibuf, IMSG_CTL_TABLE_ENABLE, 0, 0,
- &res->id, sizeof(res->id));
+ &res->id, sizeof(res->id));
break;
case TABLE_DISABLE:
imsg_compose(ibuf, IMSG_CTL_TABLE_DISABLE, 0, 0,
- &res->id, sizeof(res->id));
+ &res->id, sizeof(res->id));
break;
case HOST_ENABLE:
imsg_compose(ibuf, IMSG_CTL_HOST_ENABLE, 0, 0,
- &res->id, sizeof(res->id));
+ &res->id, sizeof(res->id));
break;
case HOST_DISABLE:
imsg_compose(ibuf, IMSG_CTL_HOST_DISABLE, 0, 0,
- &res->id, sizeof(res->id));
+ &res->id, sizeof(res->id));
break;
case SHUTDOWN:
imsg_compose(ibuf, IMSG_CTL_SHUTDOWN, 0, 0, NULL, 0);
@@ -252,8 +252,7 @@ print_table_status(int up, int fl)
} else if (!up) {
snprintf(buf, sizeof(buf) - 1, "empty");
} else
- snprintf(buf, sizeof(buf) - 1, "active (%d hosts up)",
- up);
+ snprintf(buf, sizeof(buf) - 1, "active (%d hosts up)", up);
return (buf);
}