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.
This commit is contained in:
Hellmuth Michaelis 2006-05-13 14:59:58 +00:00
parent 9b861a1f96
commit c6a39ce216
2 changed files with 7 additions and 7 deletions

View File

@ -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));

View File

@ -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);
}
}