Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/lpr/lpd Us daemons don't need no unions - just wait...



details:   https://anonhg.NetBSD.org/src/rev/8ab0693fadb9
branches:  trunk
changeset: 374481:8ab0693fadb9
user:      kre <kre%NetBSD.org@localhost>
date:      Wed Apr 26 18:25:02 2023 +0000

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

diffstat:

 usr.sbin/lpr/lpd/lpd.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 17121c1247d8 -r 8ab0693fadb9 usr.sbin/lpr/lpd/lpd.c
--- a/usr.sbin/lpr/lpd/lpd.c    Tue Apr 25 19:00:57 2023 +0000
+++ b/usr.sbin/lpr/lpd/lpd.c    Wed Apr 26 18:25:02 2023 +0000
@@ -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 @@
 #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--;
 }
 



Home | Main Index | Thread Index | Old Index