From 4cd8e9cd5ebebe0f5b6f4e68ee7b588bf6bf9208 Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Thu, 18 Jun 2009 15:47:39 +0000 Subject: Fix some typos and whitespace issues. ok marco@ --- sys/dev/softraid.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index 5e92486d0c3..8d61109a9c1 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.153 2009/06/17 23:13:36 jordan Exp $ */ +/* $OpenBSD: softraid.c,v 1.154 2009/06/18 15:47:38 jsing Exp $ */ /* * Copyright (c) 2007 Marco Peereboom * Copyright (c) 2008 Chris Kuethe @@ -469,7 +469,7 @@ sr_meta_chunks_create(struct sr_softc *sc, struct sr_chunk_head *cl) ch_entry->src_meta.scm_status = BIOC_SDONLINE; strlcpy(ch_entry->src_meta.scmi.scm_devname, name, sizeof(ch_entry->src_meta.scmi.scm_devname)); - bcopy(&uuid, &ch_entry->src_meta.scmi.scm_uuid, + bcopy(&uuid, &ch_entry->src_meta.scmi.scm_uuid, sizeof(ch_entry->src_meta.scmi.scm_uuid)); if (ch_entry->src_meta.scmi.scm_size > max_chunk_sz) @@ -586,7 +586,7 @@ sr_meta_save(struct sr_discipline *sd, u_int32_t flags) /* meta scratchpad */ s = &smd[sd->sd_meta_type]; - m = malloc(SR_META_SIZE * 512 , M_DEVBUF, M_ZERO); + m = malloc(SR_META_SIZE * 512, M_DEVBUF, M_ZERO); if (!m) { printf("%s: could not allocate metadata scratch area\n", DEVNAME(sc)); @@ -623,7 +623,7 @@ restart: if (src->src_meta.scm_status == BIOC_SDOFFLINE) continue; - /* calculate metdata checksum for correct chunk */ + /* calculate metadata checksum for correct chunk */ m->ssdi.ssd_chunk_id = i; sr_checksum(sc, m, &m->ssd_checksum, sizeof(struct sr_meta_invariant)); @@ -651,7 +651,7 @@ restart: } } - /* not al disciplines have sync */ + /* not all disciplines have sync */ if (sd->sd_scsi_sync) { bzero(&wu, sizeof(wu)); wu.swu_fake = 1; @@ -1120,7 +1120,7 @@ sr_meta_native_attach(struct sr_discipline *sd, int force) DNPRINTF(SR_D_META, "%s: sr_meta_native_attach\n", DEVNAME(sc)); - md = malloc(SR_META_SIZE * 512 , M_DEVBUF, M_ZERO); + md = malloc(SR_META_SIZE * 512, M_DEVBUF, M_ZERO); if (md == NULL) { printf("%s: not enough memory for metadata buffer\n", DEVNAME(sc)); -- cgit v1.2.3