add macro and fix typo.

This commit is contained in:
chopps 1994-05-16 04:50:43 +00:00
parent 90660bcd58
commit e764a84440
2 changed files with 7 additions and 3 deletions

View File

@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: device.h,v 1.1 1994/05/08 05:56:20 chopps Exp $
* $Id: device.h,v 1.2 1994/05/16 04:50:43 chopps Exp $
*/
#ifndef _AMIGA_DEVICE_H_
#define _AMIGA_DEVICE_H_
@ -46,4 +46,8 @@ int matchname __P((char *, char *));
*/
int amiga_realconfig;
#define getsoftc(cdnam, unit) \
(unit >= cdnam.cd_ndevs ? NULL : cdnam.cd_devs[unit])
#endif /* _AMIGA_DEVICE_H_ */

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)swapgeneric.c 7.5 (Berkeley) 5/7/91
* $Id: swapgeneric.c,v 1.12 1994/05/09 06:38:00 chopps Exp $
* $Id: swapgeneric.c,v 1.13 1994/05/16 04:50:45 chopps Exp $
*/
#include <sys/param.h>
@ -73,7 +73,7 @@ extern struct cfdriver fdcd;
extern struct cfdriver sdcd;
#endif
#if NCD > 0
extern struct cfdriver sdcd;
extern struct cfdriver cdcd;
#endif
struct genericconf {