Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/crypto/dist/heimdal/kdc Pullup 1.4 [itojun]:
details: https://anonhg.NetBSD.org/src/rev/970d20e7438a
branches: netbsd-1-5
changeset: 489840:970d20e7438a
user: tv <tv%NetBSD.org@localhost>
date: Tue Oct 17 23:12:11 2000 +0000
description:
Pullup 1.4 [itojun]:
printf format pedant. (size_t -> u_long).
diffstat:
crypto/dist/heimdal/kdc/connect.c | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
diffs (69 lines):
diff -r e6cc699e517a -r 970d20e7438a crypto/dist/heimdal/kdc/connect.c
--- a/crypto/dist/heimdal/kdc/connect.c Tue Oct 17 23:11:27 2000 +0000
+++ b/crypto/dist/heimdal/kdc/connect.c Tue Oct 17 23:12:11 2000 +0000
@@ -33,7 +33,7 @@
#include "kdc_locl.h"
-RCSID("$Id: connect.c,v 1.1.1.1.2.1 2000/06/21 06:37:31 thorpej Exp $");
+RCSID("$Id: connect.c,v 1.1.1.1.2.2 2000/10/17 23:12:11 tv Exp $");
/*
* a tuple describing on what to listen
@@ -417,7 +417,8 @@
ret = process_request(buf, len, &reply, &sendlength,
d->addr_string, d->sa);
if(reply.length){
- kdc_log(5, "sending %d bytes to %s", reply.length, d->addr_string);
+ kdc_log(5, "sending %lu bytes to %s", (u_long)reply.length,
+ d->addr_string);
if(sendlength){
unsigned char len[4];
len[0] = (reply.length >> 24) & 0xff;
@@ -454,7 +455,7 @@
buf = malloc(max_request);
if(buf == NULL){
- kdc_log(0, "Failed to allocate %u bytes", max_request);
+ kdc_log(0, "Failed to allocate %lu bytes", (u_long)max_request);
return;
}
@@ -542,14 +543,14 @@
d->size += max(1024, d->len + n);
if (d->size >= max_request) {
- kdc_log(0, "Request exceeds max request size (%u bytes).",
- d->size);
+ kdc_log(0, "Request exceeds max request size (%lu bytes).",
+ (u_long)d->size);
clear_descr(d);
return -1;
}
tmp = realloc (d->buf, d->size);
if (tmp == NULL) {
- kdc_log(0, "Failed to re-allocate %u bytes.", d->size);
+ kdc_log(0, "Failed to re-allocate %lu bytes.", (u_long)d->size);
clear_descr(d);
return -1;
}
@@ -618,7 +619,7 @@
}
data = malloc(strlen(t));
if (data == NULL) {
- kdc_log(0, "Failed to allocate %u bytes", strlen(t));
+ kdc_log(0, "Failed to allocate %lu bytes", (u_long)strlen(t));
return -1;
}
if(*t == '/')
@@ -735,8 +736,8 @@
if(d[i].s >= 0){
if(d[i].type == SOCK_STREAM &&
d[i].timeout && d[i].timeout < time(NULL)) {
- kdc_log(1, "TCP-connection from %s expired after %u bytes",
- d[i].addr_string, d[i].len);
+ kdc_log(1, "TCP-connection from %s expired after %lu bytes",
+ d[i].addr_string, (u_long)d[i].len);
clear_descr(&d[i]);
continue;
}
Home |
Main Index |
Thread Index |
Old Index