Commit Diff


commit - 048e42ec8bb486d05447d67da6c1014f3b492423
commit + c2e630e5159aca0f69626f8315c68ae951323e79
blob - 72f8c092c656c92ad57ee27ca94dbdeb4a4c629e
blob + 5279ad62d3c4799899b8920e312200b86081abb3
--- lstun.c
+++ lstun.c
@@ -89,9 +89,8 @@ static void
 chld(int fd, short event, void *data)
 {
 	int status;
-	pid_t pid;
 
-	if ((pid = waitpid(ssh_pid, &status, WNOHANG)) == -1)
+	if (waitpid(ssh_pid, &status, WNOHANG) == -1)
 		err(1, "waitpid");
 
 	ssh_pid = -1;