*: style fix
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/editors/patch.c b/editors/patch.c
index aebb507..f90d685 100644
--- a/editors/patch.c
+++ b/editors/patch.c
@@ -138,9 +138,9 @@
{
struct double_list *dlist = data;
- if (TT.state>1 && *dlist->data != TT.state)
+ if (TT.state > 1 && *dlist->data != TT.state)
fdprintf(TT.state == 2 ? 2 : TT.fileout,
- "%s\n", dlist->data+(TT.state>3 ? 1 : 0));
+ "%s\n", dlist->data + (TT.state > 3 ? 1 : 0));
if (PATCH_DEBUG) fdprintf(2, "DO %d: %s\n", TT.state, dlist->data);
@@ -221,7 +221,7 @@
// Match EOF if there aren't as many ending context lines as beginning
for (plist = TT.current_hunk; plist; plist = plist->next) {
- if (plist->data[0]==' ') matcheof++;
+ if (plist->data[0] == ' ') matcheof++;
else matcheof = 0;
if (PATCH_DEBUG) fdprintf(2, "HUNK:%s\n", plist->data);
}
@@ -433,15 +433,15 @@
// Are we assembling a hunk?
if (state >= 2) {
- if (*patchline==' ' || *patchline=='+' || *patchline=='-') {
+ if (*patchline == ' ' || *patchline == '+' || *patchline == '-') {
dlist_add(&TT.current_hunk, patchline);
if (*patchline != '+') oldlen--;
if (*patchline != '-') newlen--;
// Context line?
- if (*patchline==' ' && state==2) TT.context++;
- else state=3;
+ if (*patchline == ' ' && state == 2) TT.context++;
+ else state = 3;
// If we've consumed all expected hunk lines, apply the hunk.
@@ -469,9 +469,9 @@
free(*name);
// Trim date from end of filename (if any). We don't care.
for (s = patchline+4; *s && *s!='\t'; s++)
- if (*s=='\\' && s[1]) s++;
+ if (*s == '\\' && s[1]) s++;
i = atoi(s);
- if (i>1900 && i<=1970)
+ if (i > 1900 && i <= 1970)
*name = xstrdup("/dev/null");
else {
*s = 0;