diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-02-10 01:20:13 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-02-10 01:20:13 +0000 |
commit | d5bf00b4c104794b2efea2d10c7b4f055898309d (patch) | |
tree | 10824b9647fc6ac591cbcd388976a55abb17fca1 | |
parent | 6887a1953f21ae450e97fe8085e3d6e972a2dda6 (diff) |
Don't hard-code type for tty sysctls to CTLTYPE_QUAD; some values are
now int.
-rw-r--r-- | sbin/sysctl/sysctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index fdd09c3e030..4095b654aa1 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.c,v 1.106 2004/01/19 01:09:06 tedu Exp $ */ +/* $OpenBSD: sysctl.c,v 1.107 2004/02/10 01:20:12 millert Exp $ */ /* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */ /* @@ -40,7 +40,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)sysctl.c 8.5 (Berkeley) 5/9/95"; #else -static const char rcsid[] = "$OpenBSD: sysctl.c,v 1.106 2004/01/19 01:09:06 tedu Exp $"; +static const char rcsid[] = "$OpenBSD: sysctl.c,v 1.107 2004/02/10 01:20:12 millert Exp $"; #endif #endif /* not lint */ @@ -1489,7 +1489,7 @@ sysctl_tty(char *string, char **bufpp, int mib[], int flags, int *typep) if ((indx = findname(string, "third", bufpp, &ttylist)) == -1) return (-1); mib[2] = indx; - *typep = CTLTYPE_QUAD; + *typep = ttylist.list[indx].ctl_type; return (3); } |