diff options
| author | christos <christos@NetBSD.org> | 2019-09-26 01:36:10 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2019-09-26 01:36:10 +0000 |
| commit | 3ff7541149e497ecfacb32a6a6d568ae454e97b4 (patch) | |
| tree | a16c58ab9b6b28551a98de53fbd4cdefcf4359ed /sys/dev/raidframe | |
| parent | 5eba6e825620291f8f2befeed6f2e6e4013f05b2 (diff) | |
make nspares unsigned; it is assigned from numSpares which is unsigned.
Diffstat (limited to 'sys/dev/raidframe')
| -rw-r--r-- | sys/dev/raidframe/raidframevar.h | 4 | ||||
| -rw-r--r-- | sys/dev/raidframe/rf_compat50.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/raidframe/raidframevar.h b/sys/dev/raidframe/raidframevar.h index 34083782a4f..b260e3adaeb 100644 --- a/sys/dev/raidframe/raidframevar.h +++ b/sys/dev/raidframe/raidframevar.h @@ -1,4 +1,4 @@ -/* $NetBSD: raidframevar.h,v 1.19 2018/04/19 21:50:09 christos Exp $ */ +/* $NetBSD: raidframevar.h,v 1.20 2019/09/26 01:36:10 christos Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. * All rights reserved. @@ -519,7 +519,7 @@ typedef struct RF_DeviceConfig_s { u_int maxqdepth; int ndevs; RF_RaidDisk_t devs[RF_MAX_DISKS]; - int nspares; + u_int nspares; RF_RaidDisk_t spares[RF_MAX_DISKS]; } RF_DeviceConfig_t; diff --git a/sys/dev/raidframe/rf_compat50.c b/sys/dev/raidframe/rf_compat50.c index 9a452aab518..7eac8033a68 100644 --- a/sys/dev/raidframe/rf_compat50.c +++ b/sys/dev/raidframe/rf_compat50.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_compat50.c,v 1.10 2019/03/01 11:06:56 pgoyette Exp $ */ +/* $NetBSD: rf_compat50.c,v 1.11 2019/09/26 01:36:10 christos Exp $ */ /*- * Copyright (c) 2009 The NetBSD Foundation, Inc. @@ -86,7 +86,7 @@ typedef struct RF_DeviceConfig50_s { u_int maxqdepth; int ndevs; RF_RaidDisk50_t devs[RF_MAX_DISKS]; - int nspares; + u_int nspares; RF_RaidDisk50_t spares[RF_MAX_DISKS]; } RF_DeviceConfig50_t; |
