summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@xenon.tklauser.home>2006-05-09 22:36:56 +0200
committerTobias Klauser <tklauser@xenon.tklauser.home>2006-05-09 22:36:56 +0200
commit84779e0fc5d1297c95c86d68c16e262d20da7480 (patch)
treeb8f1551c956501585a57415d77e1395d8a8fb15f
parentfd58837bf186c49a681f0c498cbaa17a87b69408 (diff)
Merge two if's
-rw-r--r--simpletail.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/simpletail.c b/simpletail.c
index fa47668..ec00b19 100644
--- a/simpletail.c
+++ b/simpletail.c
@@ -90,15 +90,15 @@ static off_t lines(int fd, int file_size, unsigned int n_lines)
dprintf(" Found \\n at position %d\n", i);
n_lines--;
- if (n_lines == 0)
+ if (n_lines == 0) {
+ /* We don't want the first \n */
+ offset += i + 1;
break;
+ }
}
}
}
- if (n_lines == 0)
- offset += i + 1; /* We don't want the first \n */
-
return offset;
}
ht'>154
1 files changed, 148 insertions, 6 deletions
diff --git a/Documentation/trace/events.txt b/Documentation/trace/events.txt