diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-03-28 00:08:40 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-03-28 00:08:40 +0000 |
commit | 33b5e080d69634f4d033bac2772001370ae9a783 (patch) | |
tree | 20cfff444a04e0adc17460a3ec877c7a99ed2fef /usr.sbin/makefs/msdos | |
parent | 5550607ad7d6cc7d004a2f1d413dd88975d480b4 (diff) |
add missing braces around a multi line if statement
ok patrick@ deraadt@
Diffstat (limited to 'usr.sbin/makefs/msdos')
-rw-r--r-- | usr.sbin/makefs/msdos/mkfs_msdos.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/makefs/msdos/mkfs_msdos.c b/usr.sbin/makefs/msdos/mkfs_msdos.c index e4fe0856ade..cd291d8a5c5 100644 --- a/usr.sbin/makefs/msdos/mkfs_msdos.c +++ b/usr.sbin/makefs/msdos/mkfs_msdos.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mkfs_msdos.c,v 1.3 2016/12/17 16:43:30 krw Exp $ */ +/* $OpenBSD: mkfs_msdos.c,v 1.4 2017/03/28 00:08:39 jsg Exp $ */ /* $NetBSD: mkfs_msdos.c,v 1.10 2016/04/03 11:00:13 mlelstv Exp $ */ /* @@ -797,10 +797,11 @@ getbpbinfo(int fd, const char *fname, const char *dtype, int iflag, return -1; bpb->spt = nsectors; } - if (!bpb->hds) + if (!bpb->hds) { if (ckgeom(fname, ntracks, "drive heads") == -1) return -1; bpb->hds = ntracks; + } if (!bpb->bsec) bpb->bsec = size; } |