Print a complaint when no children were specified

in the config file.  Better than a link error...
This commit is contained in:
gwr 1998-07-23 23:48:33 +00:00
parent 4a15b6ba7d
commit 4eeeee6a7c
3 changed files with 40 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fd.c,v 1.8 1998/07/04 22:18:42 jonathan Exp $ */
/* $NetBSD: fd.c,v 1.9 1998/07/23 23:49:21 gwr Exp $ */
/*-
* Copyright (c) 1993, 1994, 1995 Charles Hannum.
@ -68,6 +68,19 @@
#include <sun3/dev/fdreg.h>
#include <sun3/dev/fdvar.h>
/*
* Print a complaint when no fd children were specified
* in the config file. Better than a link error...
*
* XXX: Some folks say this driver should be split in two,
* but that seems pointless with ONLY one type of child.
* (Thankfully, no 3/80 boxes have floppy tapes!:)
*/
#include "fdc.h"
#if NFD == 0
#error "fdc but no fd?"
#endif
#define FDUNIT(dev) (minor(dev) / 8)
#define FDTYPE(dev) (minor(dev) % 8)

View File

@ -1,4 +1,4 @@
/* $NetBSD: xd.c,v 1.21 1998/06/30 04:35:37 mrg Exp $ */
/* $NetBSD: xd.c,v 1.22 1998/07/23 23:48:33 gwr Exp $ */
/*
*
@ -88,6 +88,18 @@
#include "locators.h"
/*
* Print a complaint when no xd children were specified
* in the config file. Better than a link error...
*
* XXX: Some folks say this driver should be split in two,
* but that seems pointless with ONLY one type of child.
*/
#include "xd.h"
#if NXD == 0
#error "xdc but no xd?"
#endif
/*
* macros
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: xy.c,v 1.21 1998/06/30 04:35:37 mrg Exp $ */
/* $NetBSD: xy.c,v 1.22 1998/07/23 23:48:33 gwr Exp $ */
/*
*
@ -88,6 +88,18 @@
#include "locators.h"
/*
* Print a complaint when no xy children were specified
* in the config file. Better than a link error...
*
* XXX: Some folks say this driver should be split in two,
* but that seems pointless with ONLY one type of child.
*/
#include "xy.h"
#if NXY == 0
#error "xyc but no xy?"
#endif
/*
* macros
*/