diff options
author | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-01-09 13:50:12 +0000 |
---|---|---|
committer | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-01-09 13:50:12 +0000 |
commit | e7a846275cccd81c533417c7c5aec5490dca4077 (patch) | |
tree | c70864a568813aeaba55b410a62e079aba71606d /usr.sbin/hoststatectl/hoststatectl.c | |
parent | bf19965ce7a408698b9a3f578cc2d7641fec1ec6 (diff) |
Finish renaming hostated to hoststated.
Note to testers: the user the daemon changes its id to is now _hoststated,
don't forget to update master.passwd.
ok reyk@
Diffstat (limited to 'usr.sbin/hoststatectl/hoststatectl.c')
-rw-r--r-- | usr.sbin/hoststatectl/hoststatectl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/hoststatectl/hoststatectl.c b/usr.sbin/hoststatectl/hoststatectl.c index 90ad447aa22..5119d4e6898 100644 --- a/usr.sbin/hoststatectl/hoststatectl.c +++ b/usr.sbin/hoststatectl/hoststatectl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hoststatectl.c,v 1.7 2007/01/09 00:45:32 deraadt Exp $ */ +/* $OpenBSD: hoststatectl.c,v 1.8 2007/01/09 13:50:10 pyr Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org> @@ -57,7 +57,7 @@ usage(void) exit(1); } -/* dummy function so that hostatectl does not need libevent */ +/* dummy function so that hoststatectl does not need libevent */ void imsg_event_add(struct imsgbuf *i) { @@ -78,15 +78,15 @@ main(int argc, char *argv[]) if ((res = parse(argc - 1, argv + 1)) == NULL) exit(1); - /* connect to hostated control socket */ + /* connect to hoststated control socket */ if ((ctl_sock = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) err(1, "socket"); bzero(&sun, sizeof(sun)); sun.sun_family = AF_UNIX; - strlcpy(sun.sun_path, HOSTATED_SOCKET, sizeof(sun.sun_path)); + strlcpy(sun.sun_path, HOSTSTATED_SOCKET, sizeof(sun.sun_path)); if (connect(ctl_sock, (struct sockaddr *)&sun, sizeof(sun)) == -1) - err(1, "connect: %s", HOSTATED_SOCKET); + err(1, "connect: %s", HOSTSTATED_SOCKET); if ((ibuf = malloc(sizeof(struct imsgbuf))) == NULL) err(1, NULL); |