Deleted Added
full compact
hptproc.c (302408) hptproc.c (315221)
1/*
2 * Copyright (c) 2004-2005 HighPoint Technologies, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*
2 * Copyright (c) 2004-2005 HighPoint Technologies, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: stable/11/sys/dev/hptmv/hptproc.c 298231 2016-04-18 23:26:11Z sbruno $
26 * $FreeBSD: stable/11/sys/dev/hptmv/hptproc.c 315221 2017-03-14 02:06:03Z pfg $
27 */
28/*
29 * hptproc.c sysctl support
30 */
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/kernel.h>
34#include <sys/malloc.h>

--- 387 unchanged lines hidden (view full) ---

422 name, pVDev->VDeviceCapacity>>11, status, arrayname);
423}
424
425#ifdef SUPPORT_ARRAY
426static void
427hpt_copy_array_info(HPT_GET_INFO *pinfo, int nld, PVDevice pArray)
428{
429 int i;
27 */
28/*
29 * hptproc.c sysctl support
30 */
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/kernel.h>
34#include <sys/malloc.h>

--- 387 unchanged lines hidden (view full) ---

422 name, pVDev->VDeviceCapacity>>11, status, arrayname);
423}
424
425#ifdef SUPPORT_ARRAY
426static void
427hpt_copy_array_info(HPT_GET_INFO *pinfo, int nld, PVDevice pArray)
428{
429 int i;
430 char *sType=0, *sStatus=0;
430 char *sType = NULL, *sStatus = NULL;
431 char buf[32];
432 PVDevice pTmpArray;
433
434 switch (pArray->VDeviceType) {
435 case VD_RAID_0:
436 for (i = 0; (UCHAR)i < pArray->u.array.bArnMember; i++)
437 if(pArray->u.array.pMember[i]) {
438 if(mIsArray(pArray->u.array.pMember[i]))

--- 212 unchanged lines hidden ---
431 char buf[32];
432 PVDevice pTmpArray;
433
434 switch (pArray->VDeviceType) {
435 case VD_RAID_0:
436 for (i = 0; (UCHAR)i < pArray->u.array.bArnMember; i++)
437 if(pArray->u.array.pMember[i]) {
438 if(mIsArray(pArray->u.array.pMember[i]))

--- 212 unchanged lines hidden ---