diff options
author | le <le@FreeBSD.org> | 2005-11-20 12:14:18 +0000 |
---|---|---|
committer | le <le@FreeBSD.org> | 2005-11-20 12:14:18 +0000 |
commit | 00a607320a33ffce1a7c6df33a94af6c82cafdcb (patch) | |
tree | d8f6cb573af2efe8f9a47474746708c80eb747ba /sys | |
parent | d875cd85c6f8703f3392c26d5a0d29729032ed90 (diff) | |
download | FreeBSD-src-00a607320a33ffce1a7c6df33a94af6c82cafdcb.zip FreeBSD-src-00a607320a33ffce1a7c6df33a94af6c82cafdcb.tar.gz |
Whitespace.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/geom/vinum/geom_vinum_rename.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/geom/vinum/geom_vinum_rename.c b/sys/geom/vinum/geom_vinum_rename.c index c3bb3c7..3d66fce 100644 --- a/sys/geom/vinum/geom_vinum_rename.c +++ b/sys/geom/vinum/geom_vinum_rename.c @@ -5,7 +5,7 @@ * This software was developed for the FreeBSD Project by Chris Jones * thanks to the support of Google's Summer of Code program and * mentoring by Lukas Ertl. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -14,7 +14,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * + * * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE @@ -128,7 +128,7 @@ gv_rename(struct g_geom *gp, struct gctl_req *req) gv_save_config_all(sc); } -static int +static int gv_rename_drive(struct gv_softc *sc, struct gctl_req *req, struct gv_drive *d, char *newname, int flags) { struct gv_sd *s; @@ -205,7 +205,7 @@ gv_rename_plex(struct gv_softc *sc, struct gctl_req *req, struct gv_plex *p, cha /* Fix up references and potentially rename subdisks. */ LIST_FOREACH(s, &p->subdisks, in_plex) { - strncpy(s->plex, p->name, GV_MAXPLEXNAME); + strncpy(s->plex, p->name, GV_MAXPLEXNAME); if (flags && GV_FLAG_R) { newsd = g_malloc(GV_MAXSDNAME, M_WAITOK | M_ZERO); oldsd = g_malloc(GV_MAXSDNAME, M_WAITOK | M_ZERO); @@ -238,8 +238,8 @@ failure: * since there are no structures below a subdisk. Similarly, we don't have to * clean up any references elsewhere to the subdisk's name. */ -static int -gv_rename_sd(struct gv_softc *sc, struct gctl_req *req, struct gv_sd *s, char * newname, int flags) +static int +gv_rename_sd(struct gv_softc *sc, struct gctl_req *req, struct gv_sd *s, char * newname, int flags) { char *new, *newp, *old, *oldp; int err; @@ -303,7 +303,7 @@ fail: return (err); } -static int +static int gv_rename_vol(struct gv_softc *sc, struct gctl_req *req, struct gv_volume *v, char *newname, int flags) { struct gv_plex *p; @@ -342,6 +342,6 @@ gv_rename_vol(struct gv_softc *sc, struct gctl_req *req, struct gv_volume *v, ch return (err); } } - + return (0); } |