From 13c579741f0f3186a7b4fe5609607d7ac1aa984f Mon Sep 17 00:00:00 2001 From: Steven Luo Date: Mon, 15 Feb 2010 18:50:01 -0800 Subject: [PATCH] Clarify control flow in inotify read loop Replace pointer arithmetic that makes the loop condition false with a simple break; functionally equivalent, but much clearer. --- launcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher.c b/launcher.c index 45ce750..9d2953b 100644 --- a/launcher.c +++ b/launcher.c @@ -381,7 +381,7 @@ void launch_microb(struct swb_context *ctx, char *uri) { pos += len; else /* All events processed */ - pos = buf + bytes_read; + break; } if (!pos) /* Event found, stop looking */ -- 1.7.9.5