Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/isdn/isdnd More time_t fallout.



details:   https://anonhg.NetBSD.org/src/rev/d068d00a5374
branches:  trunk
changeset: 777703:d068d00a5374
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Mar 02 02:58:46 2012 +0000

description:
More time_t fallout.

diffstat:

 usr.sbin/isdn/isdnd/exec.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (48 lines):

diff -r c642e0b20822 -r d068d00a5374 usr.sbin/isdn/isdnd/exec.c
--- a/usr.sbin/isdn/isdnd/exec.c        Thu Mar 01 22:38:31 2012 +0000
+++ b/usr.sbin/isdn/isdnd/exec.c        Fri Mar 02 02:58:46 2012 +0000
@@ -27,7 +27,7 @@
  *     exec.h - supplemental program/script execution
  *     ----------------------------------------------
  *
- *     $Id: exec.c,v 1.10 2009/04/16 05:56:32 lukem Exp $ 
+ *     $Id: exec.c,v 1.11 2012/03/02 02:58:46 joerg Exp $ 
  *
  * $FreeBSD$
  *
@@ -316,7 +316,7 @@
                        return;
                }
 
-               ret = fprintf(fp, "%ld %ld 1", (long)now, (long)now);
+               ret = fprintf(fp, "%jd %jd 1", (intmax_t)now, (intmax_t)now);
                if (ret <= 0)
                        logit(LL_ERR, "ERROR, upd_callstat_file: fprintf failed: %s", strerror(errno));
                
@@ -372,7 +372,7 @@
                                return;
                        }
 
-                       ret = fprintf(nfp, "%ld %ld %d", (long)s, (long)l, n);
+                       ret = fprintf(nfp, "%jd %jd %d", (intmax_t)s, (intmax_t)l, n);
                        if (ret <= 0)
                                logit(LL_ERR, "ERROR, upd_callstat_file: fprintf failed: %s", strerror(errno));
                        
@@ -382,7 +382,7 @@
                        n = 0;
                        s = now;
 
-                       logit(LL_WRN, "upd_callstat_file: rotate %s, new s=%ld l=%ld n=%d", filename, s, l, n);
+                       logit(LL_WRN, "upd_callstat_file: rotate %s, new s=%jd l=%jd n=%d", filename, (intmax_t)s, (intmax_t)l, n);
                }                               
        }
 
@@ -393,7 +393,7 @@
         * leftovers from previous contents!
         */
 
-       ret = fprintf(fp, "%ld %ld %-3d", (long)s, (long)now, n);       
+       ret = fprintf(fp, "%jd %jd %-3d", (time_t)s, (time_t)now, n);   
 
        if (ret <= 0)
                logit(LL_ERR, "ERROR, upd_callstat_file: fprintf failed: %s", strerror(errno));



Home | Main Index | Thread Index | Old Index