|
@ -1,4 +1,4 @@ |
|
|
/* $OpenBSD: ntpd.c,v 1.86 2015/01/14 21:14:27 naddy Exp $ */ |
|
|
|
|
|
|
|
|
/* $OpenBSD: ntpd.c,v 1.87 2015/01/19 20:47:03 bcook Exp $ */ |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> |
|
|
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> |
|
@ -578,12 +578,11 @@ ctl_main(int argc, char *argv[]) |
|
|
case 'a': |
|
|
case 'a': |
|
|
action = CTL_SHOW_ALL; |
|
|
action = CTL_SHOW_ALL; |
|
|
break; |
|
|
break; |
|
|
default: |
|
|
|
|
|
usage(); |
|
|
|
|
|
/* NOTREACHED */ |
|
|
|
|
|
} |
|
|
} |
|
|
} else |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
if (action == -1) |
|
|
usage(); |
|
|
usage(); |
|
|
|
|
|
/* NOTREACHED */ |
|
|
|
|
|
|
|
|
if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) |
|
|
if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) |
|
|
err(1, "ntpctl: socket"); |
|
|
err(1, "ntpctl: socket"); |
|
|