about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-08-28 14:13:48 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2015-08-28 14:13:48 +0200
commit9131d9443f49fe516db3438c13107757447fe37c (patch)
treef609e2f97d347ffe85589a54c40337868415d6d0
parentea929e0a287f9031be9144918350d6acf7292bf9 (diff)
downloadnq-9131d9443f49fe516db3438c13107757447fe37c.tar.gz
nq-9131d9443f49fe516db3438c13107757447fe37c.tar.xz
nq-9131d9443f49fe516db3438c13107757447fe37c.zip
fq: style
-rw-r--r--fq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fq.c b/fq.c
index 313f773..7364ba7 100644
--- a/fq.c
+++ b/fq.c
@@ -35,7 +35,7 @@ char buf[8192];
 static int
 islocked(int fd)
 {
-	if (flock(fd, LOCK_EX|LOCK_NB) == -1) {
+	if (flock(fd, LOCK_EX | LOCK_NB) == -1) {
 		return (errno == EWOULDBLOCK);
 	} else {
 		flock(fd, LOCK_UN);
@@ -146,7 +146,7 @@ main(int argc, char *argv[])
 		didsth = 1;
 
 #ifdef USE_INOTIFY
-		wd = inotify_add_watch(ifd, argv[i], IN_MODIFY|IN_CLOSE_WRITE);
+		wd = inotify_add_watch(ifd, argv[i], IN_MODIFY | IN_CLOSE_WRITE);
 #endif
 
 		while (1) {
@@ -156,7 +156,7 @@ main(int argc, char *argv[])
 				loff = off;               /* file truncated */
 
 			if (off == loff) {
-				if (flock(fd, LOCK_EX|LOCK_NB) == -1 &&
+				if (flock(fd, LOCK_EX | LOCK_NB) == -1 &&
 				    errno == EWOULDBLOCK) {
 #ifdef USE_INOTIFY
 					/* any inotify event is good */