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 cast "%ld", xxx.tv_sec to a long



details:   https://anonhg.NetBSD.org/src/rev/d4ff807af7dd
branches:  trunk
changeset: 536663:d4ff807af7dd
user:      lukem <lukem%NetBSD.org@localhost>
date:      Fri Sep 20 04:12:42 2002 +0000

description:
cast "%ld", xxx.tv_sec  to a long

diffstat:

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

diffs (27 lines):

diff -r 7a213b6330ab -r d4ff807af7dd usr.sbin/lpr/lpd/lpd.c
--- a/usr.sbin/lpr/lpd/lpd.c    Fri Sep 20 03:39:22 2002 +0000
+++ b/usr.sbin/lpr/lpd/lpd.c    Fri Sep 20 04:12:42 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lpd.c,v 1.41 2002/09/19 20:35:56 mycroft Exp $ */
+/*     $NetBSD: lpd.c,v 1.42 2002/09/20 04:12:42 lukem Exp $   */
 
 /*
  * Copyright (c) 1983, 1993, 1994
@@ -45,7 +45,7 @@
 #if 0
 static char sccsid[] = "@(#)lpd.c      8.7 (Berkeley) 5/10/95";
 #else
-__RCSID("$NetBSD: lpd.c,v 1.41 2002/09/19 20:35:56 mycroft Exp $");
+__RCSID("$NetBSD: lpd.c,v 1.42 2002/09/20 04:12:42 lukem Exp $");
 #endif
 #endif /* not lint */
 
@@ -308,7 +308,7 @@
                while (child_max < child_count) {
                        syslog(LOG_WARNING,
                            "too many children, sleeping for %ld seconds",
-                               sleeptime.tv_sec);
+                               (long)sleeptime.tv_sec);
                        nanosleep(&sleeptime, NULL);
                        sleeptime.tv_sec <<= 1;
                        if (sleeptime.tv_sec <= 0) {



Home | Main Index | Thread Index | Old Index