Fix whitespace issue.

Pointed out by:   joel@
This commit is contained in:
Lukas Ertl 2005-11-20 10:40:06 +00:00
parent ff98e7ce7a
commit 47517eab34

View File

@ -1,11 +1,11 @@
/*- /*-
* Copyright (c) 2005 Chris Jones * Copyright (c) 2005 Chris Jones
* All rights reserved. * All rights reserved.
* *
* This software was developed for the FreeBSD Project by Chris Jones * This software was developed for the FreeBSD Project by Chris Jones
* thanks to the support of Google's Summer of Code program and * thanks to the support of Google's Summer of Code program and
* mentoring by Lukas Ertl. * mentoring by Lukas Ertl.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -14,7 +14,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@ -90,7 +90,7 @@ gv_move(struct g_geom *gp, struct gctl_req *req)
return; return;
} }
err = gv_move_sd(sc, req, s, destination, *flags); err = gv_move_sd(sc, req, s, destination, *flags);
if (err) if (err)
return; return;
} }
@ -106,10 +106,10 @@ gv_move_sd(struct gv_softc *sc, struct gctl_req *req, struct gv_sd *cursd, char
struct gv_plex *p; struct gv_plex *p;
struct g_consumer *cp; struct g_consumer *cp;
char errstr[ERRBUFSIZ]; char errstr[ERRBUFSIZ];
int err; int err;
g_topology_assert(); g_topology_assert();
KASSERT(cursd != NULL, ("gv_move_sd: NULL cursd")); KASSERT(cursd != NULL, ("gv_move_sd: NULL cursd"));
cp = cursd->consumer; cp = cursd->consumer;
@ -161,7 +161,7 @@ gv_move_sd(struct gv_softc *sc, struct gctl_req *req, struct gv_sd *cursd, char
*/ */
newsd = g_malloc(sizeof(struct gv_sd), M_WAITOK | M_ZERO); newsd = g_malloc(sizeof(struct gv_sd), M_WAITOK | M_ZERO);
newsd->plex_offset = cursd->plex_offset; newsd->plex_offset = cursd->plex_offset;
newsd->size = cursd->size; newsd->size = cursd->size;
newsd->drive_offset = -1; newsd->drive_offset = -1;
strncpy(newsd->name, cursd->name, GV_MAXSDNAME); strncpy(newsd->name, cursd->name, GV_MAXSDNAME);
strncpy(newsd->drive, destination, GV_MAXDRIVENAME); strncpy(newsd->drive, destination, GV_MAXDRIVENAME);