summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2007-06-17 12:52:33 +0200
committerTobias Klauser <tklauser@xenon.tklauser.home>2007-06-17 12:52:33 +0200
commitb054120a5cde828bf2ca54d434dfb7f12ea0bf01 (patch)
tree64268188bd88f75e66797a7fc38e40df0291ada2
parente7dd7209b8b3c7fcf0a2ca681470d33a9cb09267 (diff)
inotail.c: One more unlikely
-rw-r--r--inotail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inotail.c b/inotail.c
index a9282c5..9bd7f21 100644
--- a/inotail.c
+++ b/inotail.c
@@ -512,7 +512,7 @@ int main(int argc, char **argv)
struct stat finfo;
int rc = fstat(STDIN_FILENO, &finfo);
- if (rc == -1) {
+ if (unlikely(rc == -1)) {
fprintf(stderr, "Error: Could not stat stdin (%s)\n", strerror(errno));
exit(EXIT_FAILURE);
}