style fixes. No code changes
diff --git a/editors/awk.c b/editors/awk.c
index 1bdb9b9..5a504d0 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -2145,7 +2145,8 @@
X.rsm = newfile(R.s);
if (! X.rsm->F) {
if (opn == '|') {
- if((X.rsm->F = popen(R.s, "w")) == NULL)
+ X.rsm->F = popen(R.s, "w");
+ if (X.rsm->F == NULL)
bb_perror_msg_and_die("popen");
X.rsm->is_pipe = 1;
} else {
diff --git a/editors/patch.c b/editors/patch.c
index 4d1425e..11b2f25 100644
--- a/editors/patch.c
+++ b/editors/patch.c
@@ -62,7 +62,9 @@
/* skip over (patch_level) number of leading directories */
for (i = 0; i < patch_level; i++) {
- if(!(temp = strchr(filename_start_ptr, '/'))) break;
+ temp = strchr(filename_start_ptr, '/');
+ if (!temp)
+ break;
filename_start_ptr = temp + 1;
}
diff --git a/editors/vi.c b/editors/vi.c
index 5bce427..a103776 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -447,7 +447,7 @@
q = p;
p = strchr(q,'\n');
if (p)
- while(*p == '\n')
+ while (*p == '\n')
*p++ = '\0';
if (*q)
colon(q);