summaryrefslogtreecommitdiffstats
path: root/sbin/newfs
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-03-18 03:04:58 +0000
committerbde <bde@FreeBSD.org>2002-03-18 03:04:58 +0000
commit57b14b8016a32fb679a86664b201bc9e6e0604c1 (patch)
tree769d556c091d5fe3c8af09ecfb4943d4da96de93 /sbin/newfs
parent445bbf88f37a4932dc208c7e5377865b9fafc0ae (diff)
downloadFreeBSD-src-57b14b8016a32fb679a86664b201bc9e6e0604c1.zip
FreeBSD-src-57b14b8016a32fb679a86664b201bc9e6e0604c1.tar.gz
Fixed some style bugs (mainly ones not fixed or made worse by rev.1.44).
Don't use ISO string concatentation to obfuscate long single-line messages...
Diffstat (limited to 'sbin/newfs')
-rw-r--r--sbin/newfs/newfs.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c
index a1a0c77..808c328 100644
--- a/sbin/newfs/newfs.c
+++ b/sbin/newfs/newfs.c
@@ -198,8 +198,8 @@ char device[MAXPATHLEN];
char *progname;
extern void mkfs (struct partition *, char *, int, int);
-static void usage (void);
static void rewritelabel (char *s, int fd, register struct disklabel *lp);
+static void usage (void);
int
main(argc, argv)
@@ -310,8 +310,9 @@ main(argc, argv)
else if (strcmp(optarg, "time") == 0)
opt = FS_OPTTIME;
else
- fatal("%s: unknown optimization preference: "
- "use `space' or `time'", optarg);
+ fatal(
+ "%s: unknown optimization preference: use `space' or `time'",
+ optarg);
break;
case 'p':
if ((trackspares = atoi(optarg)) < 0)
@@ -358,10 +359,9 @@ main(argc, argv)
cp = strrchr(special, '/');
if (cp == 0) {
/*
- * No path prefix; try /dev/%s.
+ * No path prefix; try prefixing _PATH_DEV.
*/
- (void)snprintf(device, sizeof(device),
- "%s%s", _PATH_DEV, special);
+ snprintf(device, sizeof(device), "%s%s", _PATH_DEV, special);
special = device;
}
if (Nflag)
@@ -426,8 +426,9 @@ main(argc, argv)
if (fssize == 0)
fssize = pp->p_size;
if (fssize > pp->p_size)
- fatal("%s: maximum file system size on the "
- "`%c' partition is %d", argv[0], *cp, pp->p_size);
+ fatal(
+ "%s: maximum file system size on the `%c' partition is %d",
+ argv[0], *cp, pp->p_size);
if (rpm == 0) {
rpm = lp->d_rpm;
if (rpm <= 0)
OpenPOWER on IntegriCloud