summaryrefslogtreecommitdiffstats
path: root/libfdisk/src/bsd.c
diff options
context:
space:
mode:
authorBenno Schulenberg2013-10-03 12:41:00 +0200
committerKarel Zak2013-10-04 11:56:15 +0200
commit88f91eb4d0f4cb0af68cefa8496a2b2ad107c36f (patch)
treed35cb09ec36f3683eaa436a605a0c3305a208722 /libfdisk/src/bsd.c
parentagetty: use standard angular brackets in usage message (diff)
downloadkernel-qcow2-util-linux-88f91eb4d0f4cb0af68cefa8496a2b2ad107c36f.tar.gz
kernel-qcow2-util-linux-88f91eb4d0f4cb0af68cefa8496a2b2ad107c36f.tar.xz
kernel-qcow2-util-linux-88f91eb4d0f4cb0af68cefa8496a2b2ad107c36f.zip
libfdisk: improve spelling of two comments
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Diffstat (limited to 'libfdisk/src/bsd.c')
-rw-r--r--libfdisk/src/bsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libfdisk/src/bsd.c b/libfdisk/src/bsd.c
index a5bfdc346..19279ad93 100644
--- a/libfdisk/src/bsd.c
+++ b/libfdisk/src/bsd.c
@@ -749,12 +749,12 @@ static int bsd_write_disklabel(struct fdisk_context *cxt)
d->d_checksum = 0;
d->d_checksum = bsd_dkcksum(d);
- /* Update label with in boot block. */
+ /* Update label within boot block. */
memmove(&l->bsdbuffer[BSD_LABELSECTOR * DEFAULT_SECTOR_SIZE
+ BSD_LABELOFFSET], d, sizeof(*d));
#if defined (__alpha__) && BSD_LABELSECTOR == 0
- /* write the check sum to the end of the first sector */
+ /* Write the checksum to the end of the first sector. */
alpha_bootblock_checksum(l->bsdbuffer);
#endif
if (lseek(cxt->dev_fd, offset, SEEK_SET) == -1) {