mkoptions.c (69004) | mkoptions.c (71251) |
---|---|
1/* 2 * Copyright (c) 1995 Peter Wemm 3 * Copyright (c) 1980, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 23 unchanged lines hidden (view full) --- 32 * SUCH DAMAGE. 33 */ 34 35#ifndef lint 36#if 0 37static char sccsid[] = "@(#)mkheaders.c 8.1 (Berkeley) 6/6/93"; 38#endif 39static const char rcsid[] = | 1/* 2 * Copyright (c) 1995 Peter Wemm 3 * Copyright (c) 1980, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 23 unchanged lines hidden (view full) --- 32 * SUCH DAMAGE. 33 */ 34 35#ifndef lint 36#if 0 37static char sccsid[] = "@(#)mkheaders.c 8.1 (Berkeley) 6/6/93"; 38#endif 39static const char rcsid[] = |
40 "$FreeBSD: head/usr.sbin/config/mkoptions.c 69004 2000-11-21 19:58:55Z imp $"; | 40 "$FreeBSD: head/usr.sbin/config/mkoptions.c 71251 2001-01-19 12:49:21Z peter $"; |
41#endif /* not lint */ 42 43/* 44 * Make all the .h files for the optional entries 45 */ 46 47#include <ctype.h> 48#include <err.h> --- 61 unchanged lines hidden (view full) --- 110 op->op_value = ns(buf); 111 op->op_next = opt; 112 opt = op; 113 114 read_options(); 115 for (ol = otab; ol != 0; ol = ol->o_next) 116 do_option(ol->o_name); 117 for (op = opt; op; op = op->op_next) { | 41#endif /* not lint */ 42 43/* 44 * Make all the .h files for the optional entries 45 */ 46 47#include <ctype.h> 48#include <err.h> --- 61 unchanged lines hidden (view full) --- 110 op->op_value = ns(buf); 111 op->op_next = opt; 112 opt = op; 113 114 read_options(); 115 for (ol = otab; ol != 0; ol = ol->o_next) 116 do_option(ol->o_name); 117 for (op = opt; op; op = op->op_next) { |
118 if (!op->op_ownfile) { | 118 if (!op->op_ownfile && strncmp(op->op_name, "DEV_", 4)) { |
119 printf("%s:%d: unknown option \"%s\"\n", 120 PREFIX, op->op_line, op->op_name); 121 exit(1); 122 } 123 } 124} 125 126/* --- 265 unchanged lines hidden --- | 119 printf("%s:%d: unknown option \"%s\"\n", 120 PREFIX, op->op_line, op->op_name); 121 exit(1); 122 } 123 } 124} 125 126/* --- 265 unchanged lines hidden --- |