diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2007-01-21 17:03:24 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@xenon.tklauser.home> | 2007-01-21 17:03:24 +0100 |
commit | 2afded80981424e21164c9720241c094341a0875 (patch) | |
tree | 150f1f0ed389d9663c98106d6f91bae7680c66b2 | |
parent | 7aeb8276e9da1039f6bb633097049b6a4a47f72a (diff) |
inotail.c: Inline some functions and initialize files pointer in main
-rw-r--r-- | inotail.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { |