diff options
author | hm <hm@FreeBSD.org> | 2006-05-13 14:59:58 +0000 |
---|---|---|
committer | hm <hm@FreeBSD.org> | 2006-05-13 14:59:58 +0000 |
commit | 17287f7b9f499f705175d55f92e436ca2d270502 (patch) | |
tree | e39bf5c83f673447f9c1362a85a76f17dca82253 | |
parent | 4dcb14212f061e4d635049fff9304c5746fe8fa5 (diff) | |
download | FreeBSD-src-17287f7b9f499f705175d55f92e436ca2d270502.zip FreeBSD-src-17287f7b9f499f705175d55f92e436ca2d270502.tar.gz |
PR: bin/71663
Submitted by: Dan Lukes
Reviewed by: hm@
fix compile warnings in isdnd and isdntest. some more
compile time warnings also mentioned in this PR were
already fixed in an earlier commit today.
-rw-r--r-- | usr.sbin/i4b/isdnd/exec.c | 10 | ||||
-rw-r--r-- | usr.sbin/i4b/isdntest/main.c | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/i4b/isdnd/exec.c b/usr.sbin/i4b/isdnd/exec.c index 1bb09b9..2f24384 100644 --- a/usr.sbin/i4b/isdnd/exec.c +++ b/usr.sbin/i4b/isdnd/exec.c @@ -29,7 +29,7 @@ * * $FreeBSD$ * - * last edit-date: [Sat May 13 13:06:12 2006] + * last edit-date: [Sat May 13 16:55:23 2006] * *---------------------------------------------------------------------------*/ @@ -321,7 +321,7 @@ upd_callstat_file(char *filename, int rotateflag) return; } - ret = fprintf(fp, "%ld %ld 1", now, now); + ret = fprintf(fp, "%d %d 1", now, now); if(ret <= 0) llog(LL_ERR, "ERROR, upd_callstat_file: fprintf failed: %s", strerror(errno)); @@ -331,7 +331,7 @@ upd_callstat_file(char *filename, int rotateflag) /* get contents */ - ret = fscanf(fp, "%ld %ld %d", &s, &l, &n); + ret = fscanf(fp, "%d %d %d", &s, &l, &n); /* reset fp */ @@ -375,7 +375,7 @@ upd_callstat_file(char *filename, int rotateflag) return; } - ret = fprintf(nfp, "%ld %ld %d", s, l, n); + ret = fprintf(nfp, "%d %d %d", s, l, n); if(ret <= 0) llog(LL_ERR, "ERROR, upd_callstat_file: fprintf failed: %s", strerror(errno)); @@ -396,7 +396,7 @@ upd_callstat_file(char *filename, int rotateflag) * leftovers from previous contents! */ - ret = fprintf(fp, "%ld %ld %-3d", s, now, n); + ret = fprintf(fp, "%d %d %-3d", s, now, n); if(ret <= 0) llog(LL_ERR, "ERROR, upd_callstat_file: fprintf failed: %s", strerror(errno)); diff --git a/usr.sbin/i4b/isdntest/main.c b/usr.sbin/i4b/isdntest/main.c index 2d80e2e..7702b1a 100644 --- a/usr.sbin/i4b/isdntest/main.c +++ b/usr.sbin/i4b/isdntest/main.c @@ -31,7 +31,7 @@ * * $FreeBSD$ * - * last edit-date: [Mon Mar 13 17:19:26 2000] + * last edit-date: [Sat May 13 16:50:38 2006] * *---------------------------------------------------------------------------*/ @@ -487,7 +487,7 @@ handle_disconnect(unsigned char *ptr) } else { - fprintf(stderr, "isdntest: incoming disconnect indication, cdid %d (???), cause %d\n", + fprintf(stderr, "isdntest: incoming disconnect indication, cdid %d (\?\?\?), cause %d\n", mdi->header.cdid, mdi->cause); } } |