about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2025-08-30 15:40:25 +0300
committerNakidai <nakidai@disroot.org>2025-08-30 15:40:25 +0300
commit482ea31d88f0516f6ed6b4800d42a0fcc3b0cb26 (patch)
tree606251bb16098155053dfd82f512305d70931dec
parent41635adb62cb94bd46517a9da3179c1a7c06d477 (diff)
downloadsami-482ea31d88f0516f6ed6b4800d42a0fcc3b0cb26.tar.gz
sami-482ea31d88f0516f6ed6b4800d42a0fcc3b0cb26.zip
Remove end label
You can omit it and just do exit
-rw-r--r--sami.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sami.c b/sami.c
index 8ae01c6..80bda70 100644
--- a/sami.c
+++ b/sami.c
@@ -82,11 +82,9 @@ retry:
 				continue;
 			}
 			if (handler(&actor[i], buffer, sz))
-				goto end;
+				exit(0);
 		}
 		goto retry;
-end:
-		exit(0);
 	}
 
 	close(pair[1]);