diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2009-04-20 16:10:40 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2009-04-20 16:10:40 +0000 |
commit | b7e1f9e4dd4578f5cf0c85d2827a5365321c406c (patch) | |
tree | fa3dca4f4d7ac0b7e816df1e826cdcdfd62a7496 /distrib | |
parent | f87b456b96b7c86efeefa53bb4fb8c79f7379847 (diff) |
- add missing header for strcmp() .
- add hw.model which could help future sgi install scripts with deciding
which kernel to pick
"commit" deraadt@
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/special/sysctl/sysctl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/distrib/special/sysctl/sysctl.c b/distrib/special/sysctl/sysctl.c index 1cd898c421f..5cb4ce1207b 100644 --- a/distrib/special/sysctl/sysctl.c +++ b/distrib/special/sysctl/sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.c,v 1.3 2009/04/19 17:56:03 deraadt Exp $ */ +/* $OpenBSD: sysctl.c,v 1.4 2009/04/20 16:10:39 jasper Exp $ */ /* * Copyright (c) 2009 Theo de Raadt <deraadt@openbsd.org> @@ -23,6 +23,7 @@ #include <unistd.h> #include <stdio.h> #include <stdlib.h> +#include <string.h> struct var { char *name; @@ -35,6 +36,8 @@ int pstring(struct var *); int pint(struct var *); struct var vars[] = { + { "hw.model", pstring, 2, + { CTL_HW, HW_MODEL }}, { "hw.disknames", pstring, 2, { CTL_HW, HW_DISKNAMES }}, { "hw.ncpufound", pint, 2, |