summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config/mkoptions.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-04-17 14:41:41 +0000
committerpeter <peter@FreeBSD.org>1999-04-17 14:41:41 +0000
commit911997aae85b3a2dadfb6a3d507fbf3e3d775e4f (patch)
treea2d650438d9efb71da65c423f887b1da272a7eb6 /usr.sbin/config/mkoptions.c
parent8dc2affd00864d25873b83cbcce034d1886c4b98 (diff)
downloadFreeBSD-src-911997aae85b3a2dadfb6a3d507fbf3e3d775e4f.zip
FreeBSD-src-911997aae85b3a2dadfb6a3d507fbf3e3d775e4f.tar.gz
Get out the blow torch and hack away all the unused stuff. Note that
I zapped the MACHINE_MIPS stuff, it isn't likely to be useful apart from recognition of the machine name. It would be reasonable to expect new ports would look something like the alpha/i386 from a config perspective.
Diffstat (limited to 'usr.sbin/config/mkoptions.c')
-rw-r--r--usr.sbin/config/mkoptions.c28
1 files changed, 11 insertions, 17 deletions
diff --git a/usr.sbin/config/mkoptions.c b/usr.sbin/config/mkoptions.c
index e638f20..25519a2 100644
--- a/usr.sbin/config/mkoptions.c
+++ b/usr.sbin/config/mkoptions.c
@@ -37,7 +37,7 @@
static char sccsid[] = "@(#)mkheaders.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
- "$Id: mkoptions.c,v 1.7 1998/07/12 02:31:08 bde Exp $";
+ "$Id: mkoptions.c,v 1.8 1998/07/12 08:10:33 bde Exp $";
#endif /* not lint */
/*
@@ -58,22 +58,16 @@ static struct users {
int u_min;
int u_max;
} users[] = {
- { 8, 2, 512 }, /* MACHINE_VAX */
- { 8, 2, 512 }, /* MACHINE_TAHOE */
- { 8, 2, 512 }, /* MACHINE_HP300 */
{ 8, 2, 512 }, /* MACHINE_I386 */
- { 8, 2, 512 }, /* MACHINE_MIPS */
- { 8, 2, 512 }, /* MACHINE_PMAX */
- { 8, 2, 512 }, /* MACHINE_LUNA68K */
- { 8, 2, 512 }, /* MACHINE_NEWS3400 */
{ 8, 2, 512 }, /* MACHINE_PC98 */
{ 8, 2, 512 }, /* MACHINE_ALPHA */
};
#define NUSERS (sizeof (users) / sizeof (users[0]))
-static char *lower __P((char *));
-void read_options __P((void));
-void do_option __P((char *));
+static char *lower __P((char *));
+static void read_options __P((void));
+static void do_option __P((char *));
+static char *tooption __P((char *));
void
options()
@@ -96,7 +90,7 @@ options()
/* Initialize `maxusers'. */
if ((unsigned)machine > NUSERS) {
printf("maxusers config info isn't present, using vax\n");
- up = &users[MACHINE_VAX - 1];
+ up = &users[MACHINE_I386 - 1];
} else
up = &users[machine - 1];
if (maxusers == 0) {
@@ -126,11 +120,11 @@ options()
* Generate an <options>.h file
*/
-void
+static void
do_option(name)
char *name;
{
- char *file, *inw, *tooption();
+ char *file, *inw;
struct opt *op, *op_head, *topp;
FILE *inf, *outf;
char *value;
@@ -250,7 +244,7 @@ do_option(name)
/*
* Find the filename to store the option spec into.
*/
-char *
+static char *
tooption(name)
char *name;
{
@@ -275,7 +269,7 @@ tooption(name)
/*
* read the options and options.<machine> files
*/
-void
+static void
read_options()
{
FILE *fp;
@@ -306,7 +300,7 @@ next:
goto openit;
}
if (first == 2) {
- (void) snprintf(fname, sizeof fname, "options.%s", raise(ident));
+ (void) snprintf(fname, sizeof fname, "options.%s", raisestr(ident));
first++;
fp = fopen(fname, "r");
if (fp != 0)
OpenPOWER on IntegriCloud