summaryrefslogtreecommitdiff
path: root/inotail.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@xenon.tklauser.home>2006-08-13 18:04:04 +0200
committerTobias Klauser <tklauser@xenon.tklauser.home>2006-08-13 18:04:04 +0200
commit10e890d0eb9ad567f859d0470a7a001c819a9fcb (patch)
tree1017df60c7ce4fe4df0e0d4fe871c14cb4e948b0 /inotail.c
parentbb554a720de6c65af2556e814ab3e556ba26de61 (diff)
Small cleanups
* Check for VERSION being set from Makefile * Remove needless code
Diffstat (limited to 'inotail.c')
-rw-r--r--inotail.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/inotail.c b/inotail.c
index 4baaa9e..8618a20 100644
--- a/inotail.c
+++ b/inotail.c
@@ -38,6 +38,9 @@
#include "inotail.h"
#define PROGRAM_NAME "inotail"
+#ifndef VERSION
+#define VERSION "undef"
+#endif
#define BUFFER_SIZE 4096
@@ -81,11 +84,8 @@ static off_t lines_to_offset(struct file_struct *f, unsigned int n_lines)
memset(&buf, 0, sizeof(buf));
- /* Negative offsets don't make sense here */
- if (offset < 0)
- offset = 0;
-
- n_lines += 1; /* We also count the last \n */
+ /* We also count the last \n */
+ n_lines += 1;
while (offset > 0 && n_lines > 0) {
int rc;
@@ -206,7 +206,6 @@ static int watch_files(struct file_struct *f, int n_files)
}
/* XXX: Is it possible that no file in the list produced the event? */
-
if (inev->mask & IN_MODIFY) {
int block_size;
char fbuf[BUFFER_SIZE];
f='/cgit.cgi/linux/net-next.git/commit/sound/usb/6fire/firmware.c?id=25985edcedea6396277003854657b5f3cb31a628'>Fix common misspellingsLucas De Marchi1-2/+2 2011-01-24ALSA: usb/6fire - Driver for TerraTec DMX 6Fire USBTorsten Schenk1-0/+426