summary refs log tree commit diff
diff options
context:
space:
mode:
authorrubin <rubinowyblask@meow.li>2026-05-22 16:21:53 +0200
committerrubin <rubinowyblask@meow.li>2026-05-22 16:21:53 +0200
commita0030b55aec2c61e05527689129c038d72e423d2 (patch)
tree856315429dc0795e3fefb3d3cf463b8002295643
parent77dc79afe5fd909fb1fe0a3cc668db2763b82fb8 (diff)
fix variable order to comply with style guide
Signed-off-by: rubin <rubinowyblask@meow.li>
-rw-r--r--fdwatcher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fdwatcher.c b/fdwatcher.c
index 8e0cb97..a25d83d 100644
--- a/fdwatcher.c
+++ b/fdwatcher.c
@@ -77,9 +77,9 @@ _fdwatcher_handleEvents(struct FDWatchHandle *handle, int (*meow)(struct FDWatch
 	int ret = 0;
 
 	while (1) {
+		struct pollfd *watchedFdEntry = NULL;
 		if (i == handle->watchedFdCount) break;
 
-		struct pollfd *watchedFdEntry = NULL;
 		watchedFdEntry = &handle->watchedFds[i];
 
 		if (watchedFdEntry->revents != 0) {