diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2007-09-25 23:57:13 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@xenon.tklauser.home> | 2007-09-25 23:57:13 +0200 |
commit | 509c2d4c2f2cc311987e841423e16fa2fa3dde71 (patch) | |
tree | f848855f15d5c775e0fdac7bae3b0c85bfb49d5a /inotail.c | |
parent | b84473c7a0d4eea056c75ef922f48864865b98ef (diff) |
inotail.c: typdef mode_t
Diffstat (limited to 'inotail.c')
-rw-r--r-- | inotail.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -261,7 +261,7 @@ static ssize_t tail_pipe(struct file_struct *f) return rc; } -static int tail_file(struct file_struct *f, unsigned long n_units, char mode, char forever) +static int tail_file(struct file_struct *f, unsigned long n_units, mode_t mode, char forever) { ssize_t bytes_read = 0; off_t offset = 0; @@ -458,7 +458,8 @@ int main(int argc, char **argv) int i, c, ret = 0; int n_files; unsigned long n_units = DEFAULT_N_LINES; - char forever = 0, mode = M_LINES; + mode_t mode = M_LINES; + char forever = 0; char **filenames; struct file_struct *files = NULL; |