summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@xenon.tklauser.home>2006-07-01 17:01:00 +0200
committerTobias Klauser <tklauser@xenon.tklauser.home>2006-07-01 17:01:00 +0200
commit86061924ff38fc6508f6d4c03dc9d31a5394faf4 (patch)
tree19a65ca97ac551082ee2e41889d849d6c7372295
parent69875c552d0554e2d33c8b9b56b16b3c9ddc8fec (diff)
Make bytes_to_offset() an inline
-rw-r--r--inotail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inotail.c b/inotail.c
index fadee12..d771f1d 100644
--- a/inotail.c
+++ b/inotail.c
@@ -104,7 +104,7 @@ static off_t lines_to_offset(int fd, int file_size, unsigned int n_lines)
return offset;
}
-static off_t bytes_to_offset(int fd, int file_size, unsigned int n_lines)
+static inline off_t bytes_to_offset(int fd, int file_size, unsigned int n_lines)
{
return (file_size - n_lines);
}