diff options
author | jsg <jsg@openbsd.org> | 2017-03-28 00:08:39 +0000 |
---|---|---|
committer | jsg <jsg@openbsd.org> | 2017-03-28 00:08:39 +0000 |
commit | 33b5d8a5de9cd7ea767311f8d451efe6e7699aa1 (patch) | |
tree | d9a91c3bcbf5af47819e2073a1ecb96792243b3e /usr.sbin/makefs | |
parent | fix semicolon after if statement in currently uncalled code (diff) | |
download | wireguard-openbsd-33b5d8a5de9cd7ea767311f8d451efe6e7699aa1.tar.xz wireguard-openbsd-33b5d8a5de9cd7ea767311f8d451efe6e7699aa1.zip |
add missing braces around a multi line if statement
ok patrick@ deraadt@
Diffstat (limited to 'usr.sbin/makefs')
-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; } |