summaryrefslogtreecommitdiffstats
path: root/sbin/gbde
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-09-10 12:16:54 +0000
committerphk <phk@FreeBSD.org>2004-09-10 12:16:54 +0000
commitd99f64fa38a96374a92ed6cf0c85f54531c57c53 (patch)
tree2d6c7b1a8c47d1d6ba778b3cfb179e71d73d8f86 /sbin/gbde
parent7c3c92e15d210b1c0ccf7383ffb6f4259e5b4fda (diff)
downloadFreeBSD-src-d99f64fa38a96374a92ed6cf0c85f54531c57c53.zip
FreeBSD-src-d99f64fa38a96374a92ed6cf0c85f54531c57c53.tar.gz
Fix a type bug which sometimes wrote unusable lock sectors on the disk.
Diffstat (limited to 'sbin/gbde')
-rw-r--r--sbin/gbde/gbde.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/gbde/gbde.c b/sbin/gbde/gbde.c
index f639f78..0d75f38 100644
--- a/sbin/gbde/gbde.c
+++ b/sbin/gbde/gbde.c
@@ -444,9 +444,9 @@ cmd_write(struct g_bde_key *gl, struct g_bde_softc *sc, int dfd , int key, const
i = write(dfd, sbuf, gl->sectorsize);
if (i != (int)gl->sectorsize)
err(1, "write");
- printf("Wrote key %d at %jd\n", key, (intmax_t)offset);
free(sbuf);
#if 0
+ printf("Wrote key %d at %jd\n", key, (intmax_t)offset);
printf("s0 = %jd\n", (intmax_t)gl->sector0);
printf("sN = %jd\n", (intmax_t)gl->sectorN);
printf("l[0] = %jd\n", (intmax_t)gl->lsector[0]);
@@ -476,7 +476,7 @@ cmd_destroy(struct g_bde_key *gl, int nkey)
static int
sorthelp(const void *a, const void *b)
{
- const off_t *oa, *ob;
+ const uint64_t *oa, *ob;
oa = a;
ob = b;
OpenPOWER on IntegriCloud