summaryrefslogtreecommitdiffstats
path: root/bin/chio/chio.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1999-04-25 21:13:34 +0000
committerimp <imp@FreeBSD.org>1999-04-25 21:13:34 +0000
commit321c551969cc862a859c9e79c8404af90c94e81d (patch)
tree5ede02d61e978d083db7e7833d1560584b758dc1 /bin/chio/chio.c
parent4be4456eab17cc243bba5d62ce59ba675507482b (diff)
downloadFreeBSD-src-321c551969cc862a859c9e79c8404af90c94e81d.zip
FreeBSD-src-321c551969cc862a859c9e79c8404af90c94e81d.tar.gz
First set of fixes to keep egcs happy. These include {} around single
statement if blocks[*] when the else could be ambiguous, not defaulting to int type and removal of some unused variables. [*] This is explicitly allowed by style(9) when the single statement spans more than one line. Reviewed by: obrien, chuckr
Diffstat (limited to 'bin/chio/chio.c')
-rw-r--r--bin/chio/chio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/chio/chio.c b/bin/chio/chio.c
index bb5f749..180d568 100644
--- a/bin/chio/chio.c
+++ b/bin/chio/chio.c
@@ -656,7 +656,7 @@ do_status(char *cname, int argc, char **argv)
printf(" avoltag: <%s:%d>",
ces->ces_avoltag.cv_volid,
ces->ces_avoltag.cv_serial);
- if (source)
+ if (source) {
if (ces->ces_flags & CES_SOURCE_VALID)
printf(" source: <%s %d>",
element_type_name(
@@ -664,6 +664,7 @@ do_status(char *cname, int argc, char **argv)
ces->ces_source_addr);
else
printf(" source: <>");
+ }
if (intaddr)
printf(" intaddr: <%d>", ces->ces_int_addr);
if (scsi) {
OpenPOWER on IntegriCloud