summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2017-02-16 02:19:17 +0200
committerDan McDonald <danmcd@joyent.com>2017-06-11 20:29:35 -0400
commit32d56ddc1c38ba72380fb34cf6b2cea48f5bd414 (patch)
tree2e36e26fcb0ffc1b8ae0cc46c18be67611a39aa5
parentabedfe964699708e27107aa91adfbbd7d8a6a5b4 (diff)
downloadillumos-joyent-32d56ddc1c38ba72380fb34cf6b2cea48f5bd414.tar.gz
8327 logadm: misleading-indentation
Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Gordon Ross <gordon.w.ross@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
-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 */