diff options
author | tjr <tjr@FreeBSD.org> | 2004-02-17 02:02:18 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-02-17 02:02:18 +0000 |
commit | 6ddcc8e1b385d0e031b088da792e4e7243f488c6 (patch) | |
tree | 0552d9f4bab1b4645113ca52e5bb4815910b32b6 /sbin | |
parent | da6ce8bbfa0cd34b8d1ac5ee4dd470be4cac8f3c (diff) | |
download | FreeBSD-src-6ddcc8e1b385d0e031b088da792e4e7243f488c6.zip FreeBSD-src-6ddcc8e1b385d0e031b088da792e4e7243f488c6.tar.gz |
Remove unnecessary newlines from errx() arguments.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/newfs_msdos/newfs_msdos.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/newfs_msdos/newfs_msdos.c b/sbin/newfs_msdos/newfs_msdos.c index 80eed76..fe9d56a 100644 --- a/sbin/newfs_msdos/newfs_msdos.c +++ b/sbin/newfs_msdos/newfs_msdos.c @@ -725,7 +725,7 @@ getdiskinfo(int fd, const char *fname, const char *dtype, int oflag, /* Maybe it's a floppy drive */ if (lp == NULL) { if (ioctl(fd, DIOCGMEDIASIZE, &ms) == -1) - errx(1, "Cannot get disk size, %s\n", strerror(errno)); + errx(1, "Cannot get disk size, %s", strerror(errno)); if (ioctl(fd, FD_GTYPE, &type) != -1) { dlp.d_secsize = 128 << type.secsize; dlp.d_nsectors = type.sectrac; @@ -740,11 +740,11 @@ getdiskinfo(int fd, const char *fname, const char *dtype, int oflag, if (lp == NULL) { if (ioctl(fd, DIOCGDINFO, &dlp) == -1) { if (ioctl(fd, DIOCGSECTORSIZE, &dlp.d_secsize) == -1) - errx(1, "Cannot get sector size, %s\n", strerror(errno)); + errx(1, "Cannot get sector size, %s", strerror(errno)); if (ioctl(fd, DIOCGFWSECTORS, &dlp.d_nsectors) == -1) - errx(1, "Cannot get number of sectors, %s\n", strerror(errno)); + errx(1, "Cannot get number of sectors, %s", strerror(errno)); if (ioctl(fd, DIOCGFWHEADS, &dlp.d_ntracks)== -1) - errx(1, "Cannot get number of heads, %s\n", strerror(errno)); + errx(1, "Cannot get number of heads, %s", strerror(errno)); dlp.d_secperunit = ms / dlp.d_secsize; } |