Module Name:    src
Committed By:   kre
Date:           Wed Apr 26 18:25:02 UTC 2023

Modified Files:
        src/usr.sbin/lpr/lpd: lpd.c

Log Message:
Us daemons don't need no unions - just wait, the easy way.


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/usr.sbin/lpr/lpd/lpd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/lpr/lpd/lpd.c
diff -u src/usr.sbin/lpr/lpd/lpd.c:1.59 src/usr.sbin/lpr/lpd/lpd.c:1.60
--- src/usr.sbin/lpr/lpd/lpd.c:1.59	Fri Apr  8 10:17:55 2022
+++ src/usr.sbin/lpr/lpd/lpd.c	Wed Apr 26 18:25:02 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: lpd.c,v 1.59 2022/04/08 10:17:55 andvar Exp $	*/
+/*	$NetBSD: lpd.c,v 1.60 2023/04/26 18:25:02 kre Exp $	*/
 
 /*
  * Copyright (c) 1983, 1993, 1994
@@ -41,7 +41,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 19
 #if 0
 static char sccsid[] = "@(#)lpd.c	8.7 (Berkeley) 5/10/95";
 #else
-__RCSID("$NetBSD: lpd.c,v 1.59 2022/04/08 10:17:55 andvar Exp $");
+__RCSID("$NetBSD: lpd.c,v 1.60 2023/04/26 18:25:02 kre Exp $");
 #endif
 #endif /* not lint */
 
@@ -394,9 +394,9 @@ chkplushost(int good, FILE *fhost, char 
 static void
 reapchild(int signo)
 {
-	union wait status;
+	int status;
 
-	while (wait3((int *)&status, WNOHANG, 0) > 0)
+	while (wait3(&status, WNOHANG, 0) > 0)
 		child_count--;
 }
 

Reply via email to