summaryrefslogtreecommitdiff
path: root/usr/src/cmd/logadm/main.c
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2017-06-12 11:46:31 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2017-06-12 11:46:31 +0000
commit8002820af5bd08062d2e43f47ec210a5537c75d5 (patch)
tree380f69af0e8840dd3e79a560889e32e3aa54af97 /usr/src/cmd/logadm/main.c
parent6f5a7120f5302fa9ed9499833f5ce780419fea22 (diff)
parent32d56ddc1c38ba72380fb34cf6b2cea48f5bd414 (diff)
downloadillumos-joyent-8002820af5bd08062d2e43f47ec210a5537c75d5.tar.gz
[illumos-gate merge]
commit 32d56ddc1c38ba72380fb34cf6b2cea48f5bd414 8327 logadm: misleading-indentation commit abedfe964699708e27107aa91adfbbd7d8a6a5b4 8325 luxadm: misleading-indentation commit f600977f942717123ad27ccbe25fcbb5e830ca1b 8338 format: misleading-indentation commit 6f2302d279a7dc8c31e7bae29eee66e95743b74e 8173 workaround qemu-xhci HCIVERSION bug commit 8b0dcb133967b853a15366312ca67b3408be89fd 8321 passmgmt: misleading-indentation commit f55f1fcb216cf1d45157402e5acbdd70e6fb23f4 8314 tbl: misleading-indentation commit a4771893ade3c706ccf9e2b441c8fb5d405be3a1 8315 sendmail: misleading-indentation commit 88811dae72594322206feacfdd588136aca40d65 8287 arn: misleading-indentation commit 15a0c3a7ba78a992f7bad7c25b74c4a6b91b7ff4 8320 regcmp: misleading-indentation commit 5b0d4055542d02d79e8b2cd0079f0580027f87e4 8340 datadm: self-comparison always evaluates to false commit 3ad44b67f5f834e6fb4458edfb33a794a6576451 8333 idmap: misleading-indentation commit 2597f9c4ddb11e61fb39cb6ff30c2d262ab22bff 8130 loader: enable BE menu if we have BE list commit 760a3dc429d80e72277b67bec8135d2d185efe9a 8129 bootadm: add support for non-zfs boot entries in menu.lst 8226 missing boot environments cause bootadm list-menu to segfault
Diffstat (limited to 'usr/src/cmd/logadm/main.c')
-rw-r--r--usr/src/cmd/logadm/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/src/cmd/logadm/main.c b/usr/src/cmd/logadm/main.c
index 219d644de2..93a54a60ed 100644
--- a/usr/src/cmd/logadm/main.c
+++ b/usr/src/cmd/logadm/main.c
@@ -543,10 +543,11 @@ dologname(struct fn *fnp, struct opts *clopts)
char *buf;
(void) fprintf(stderr, "dologname: logfiles from cfopts:\n");
fn_list_rewind(logfiles);
- while ((nextfnp = fn_list_next(logfiles)) != NULL)
+ while ((nextfnp = fn_list_next(logfiles)) != NULL) {
buf = fn_s(nextfnp);
if (buf != NULL)
(void) fprintf(stderr, " <%s>\n", buf);
+ }
}
if (fn_list_empty(logfiles))
globbedfiles = glob_glob(fnp);
@@ -901,10 +902,11 @@ expirefiles(struct fn *fnp, struct opts *opts)
buf);
}
fn_list_rewind(files);
- while ((nextfnp = fn_list_next(files)) != NULL)
+ while ((nextfnp = fn_list_next(files)) != NULL) {
buf = fn_s(nextfnp);
if (buf != NULL)
(void) fprintf(stderr, " <%s>\n", buf);
+ }
}
/* see if count causes expiration */