diff options
| author | Maxim Konovalov <maxim@FreeBSD.org> | 2005-02-04 20:09:11 +0000 |
|---|---|---|
| committer | Maxim Konovalov <maxim@FreeBSD.org> | 2005-02-04 20:09:11 +0000 |
| commit | c44e20ebec90d57a96cc08901413a5f5c3cf4235 (patch) | |
| tree | 32b5f9a86abe9ab48bb47313fff4a15e90604878 /usr.sbin/ngctl | |
| parent | e02846ce13a39c0eb11df527caa98e46a89319c6 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/ngctl')
| -rw-r--r-- | usr.sbin/ngctl/main.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/ngctl/main.c b/usr.sbin/ngctl/main.c index 4be794ff45e9..fcd61dfd9ab5 100644 --- a/usr.sbin/ngctl/main.c +++ b/usr.sbin/ngctl/main.c @@ -114,7 +114,7 @@ main(int ac, char *av[]) char name[NG_NODESIZ]; int interactive = isatty(0) && isatty(1); FILE *fp = NULL; - int ch, size, rtn = 0; + int ch, rtn = 0; /* Set default node name */ snprintf(name, sizeof(name), "ngctl%d", getpid()); @@ -146,9 +146,7 @@ main(int ac, char *av[]) /* Create a new socket node */ if (NgMkSockNode(name, &csock, &dsock) < 0) err(EX_OSERR, "can't create node"); - size = 128 * 1024; - if (setsockopt(csock, SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)) == -1) - err(1, "setsockopt"); + /* Do commands as requested */ if (ac == 0) { if (fp != NULL) { |
