From 2afded80981424e21164c9720241c094341a0875 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 21 Jan 2007 17:03:24 +0100 Subject: inotail.c: Inline some functions and initialize files pointer in main --- inotail.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'inotail.c') diff --git a/inotail.c b/inotail.c index 8695855..48cd530 100644 --- a/inotail.c +++ b/inotail.c @@ -79,7 +79,7 @@ static void usage(const int status) exit(status); } -static void setup_file(struct file_struct *f) +static inline void setup_file(struct file_struct *f) { f->fd = -1; f->st_size = 0; @@ -87,7 +87,7 @@ static void setup_file(struct file_struct *f) f->i_watch = -1; } -static void ignore_file(struct file_struct *f) +static inline void ignore_file(struct file_struct *f) { f->ignore = 1; n_ignored++; @@ -409,7 +409,7 @@ int main(int argc, char **argv) int n_units = DEFAULT_N_LINES; char forever = 0, mode = M_LINES; char **filenames; - struct file_struct *files; + struct file_struct *files = NULL; while ((c = getopt_long(argc, argv, "c:n:fvVh", long_opts, NULL)) != -1) { switch (c) { -- cgit v1.2.3-54-g00ecf