aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/gbde
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2004-09-10 12:16:54 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2004-09-10 12:16:54 +0000
commitb7cc6a22004647157a26a86b58a6dd4719786b8d (patch)
tree2d6c7b1a8c47d1d6ba778b3cfb179e71d73d8f86 /sbin/gbde
parent1d535cd590a7aa1dc3a92817b0b7c5429efd26ed (diff)
downloadsrc-b7cc6a22004647157a26a86b58a6dd4719786b8d.tar.gz
src-b7cc6a22004647157a26a86b58a6dd4719786b8d.zip
Fix a type bug which sometimes wrote unusable lock sectors on the disk.
Notes
Notes: svn path=/head/; revision=135035
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 f639f789fe85..0d75f38c0261 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;