svn commit: r230563 - stable/9/sbin/geom/class/part
Andrey V. Elsukov
ae at FreeBSD.org
Thu Jan 26 06:57:48 UTC 2012
Author: ae
Date: Thu Jan 26 06:57:47 2012
New Revision: 230563
URL: http://svn.freebsd.org/changeset/base/230563
Log:
MFC r229916 (by eadler):
Fix warning when compiling with gcc46:
error: variable 'secsz' set but not used
Modified:
stable/9/sbin/geom/class/part/geom_part.c
Directory Properties:
stable/9/sbin/geom/class/part/ (props changed)
Modified: stable/9/sbin/geom/class/part/geom_part.c
==============================================================================
--- stable/9/sbin/geom/class/part/geom_part.c Thu Jan 26 05:11:37 2012 (r230562)
+++ stable/9/sbin/geom/class/part/geom_part.c Thu Jan 26 06:57:47 2012 (r230563)
@@ -718,7 +718,7 @@ gpart_backup(struct gctl_req *req, unsig
struct ggeom *gp;
const char *s, *scheme;
off_t sector, end;
- off_t length, secsz;
+ off_t length;
int error, i, windex, wblocks, wtype;
if (gctl_get_int(req, "nargs") != 1)
@@ -744,7 +744,6 @@ gpart_backup(struct gctl_req *req, unsig
if (scheme == NULL)
abort();
pp = LIST_FIRST(&gp->lg_consumer)->lg_provider;
- secsz = pp->lg_sectorsize;
s = find_geomcfg(gp, "last");
wblocks = strlen(s);
wtype = 0;
More information about the svn-src-all
mailing list