shithub: npe

Download patch

ref: 48cf11c75a2d86f7b91b5fd8667e92458e7af271
parent: f92a0f226bb1ed8e2a53f7790f558ccc53877630
author: Noam Preil <noam@pixelhero.dev>
date: Fri Dec 12 04:57:13 EST 2025

clean up system

--- a/libnpe/system.c
+++ b/libnpe/system.c
@@ -16,7 +16,7 @@
 		return 1; /* a command interpreter is available */
 	pid = fork();
 	snprintf(cmd, sizeof cmd, "/%s/bin/rc", oty);
-	if(pid == 0) {
+	if(pid == 0){
 		execl(cmd, "rc", "-c", s, NULL);
 		exits(nil);
 	}
@@ -23,14 +23,13 @@
 	if(pid < 0){
 		return -1;
 	}
-	for(;;) {
+	for(;;){
 		w = waitpid();
 		if(w == -1 || w == pid)
 			break;
 	}
 
-	if(w == -1){
+	if(w == -1)
 		return w;
-	}
 	return status;
 }
--