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 Pull up rev. 1.2:
details: https://anonhg.NetBSD.org/src/rev/84380fe3668c
branches: netbsd-1-5
changeset: 488195:84380fe3668c
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Jun 21 06:37:31 2000 +0000
description:
Pull up rev. 1.2:
Fix printf formats on LP64.
diffstat:
crypto/dist/heimdal/kdc/connect.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r c7ffedc062e4 -r 84380fe3668c crypto/dist/heimdal/kdc/connect.c
--- a/crypto/dist/heimdal/kdc/connect.c Wed Jun 21 06:36:24 2000 +0000
+++ b/crypto/dist/heimdal/kdc/connect.c Wed Jun 21 06:37:31 2000 +0000
@@ -33,7 +33,7 @@
#include "kdc_locl.h"
-RCSID("$Id: connect.c,v 1.1.1.1 2000/06/16 18:31:37 thorpej Exp $");
+RCSID("$Id: connect.c,v 1.1.1.1.2.1 2000/06/21 06:37:31 thorpej Exp $");
/*
* a tuple describing on what to listen
@@ -305,7 +305,8 @@
parse_ports(port_str);
d = malloc(addresses.len * num_ports * sizeof(*d));
if (d == NULL)
- krb5_errx(context, 1, "malloc(%u) failed", num_ports * sizeof(*d));
+ krb5_errx(context, 1, "malloc(%lu) failed",
+ (unsigned long)num_ports * sizeof(*d));
for (i = 0; i < num_ports; i++){
for (j = 0; j < addresses.len; ++j) {
@@ -330,7 +331,8 @@
krb5_free_addresses (context, &addresses);
d = realloc(d, num * sizeof(*d));
if (d == NULL && num != 0)
- krb5_errx(context, 1, "realloc(%u) failed", num * sizeof(*d));
+ krb5_errx(context, 1, "realloc(%lu) failed",
+ (unsigned long)num * sizeof(*d));
reinit_descrs (d, num);
*desc = d;
return num;
Home |
Main Index |
Thread Index |
Old Index