Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/dist/ssh fix size_t -> int cast. need checking with ...
details: https://anonhg.NetBSD.org/src/rev/2950bbfee1f7
branches: trunk
changeset: 503518:2950bbfee1f7
user: itojun <itojun%NetBSD.org@localhost>
date: Wed Feb 07 18:05:23 2001 +0000
description:
fix size_t -> int cast. need checking with alpha...
diffstat:
crypto/dist/ssh/ssh-keyscan.c | 2 +-
crypto/dist/ssh/xmalloc.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diffs (33 lines):
diff -r 4964b8417222 -r 2950bbfee1f7 crypto/dist/ssh/ssh-keyscan.c
--- a/crypto/dist/ssh/ssh-keyscan.c Wed Feb 07 18:01:30 2001 +0000
+++ b/crypto/dist/ssh/ssh-keyscan.c Wed Feb 07 18:05:23 2001 +0000
@@ -470,7 +470,7 @@
seltime = c->c_tv;
seltime.tv_sec -= now.tv_sec;
seltime.tv_usec -= now.tv_usec;
- if ((int) seltime.tv_usec < 0) {
+ if (seltime.tv_usec < 0) {
seltime.tv_usec += 1000000;
seltime.tv_sec--;
}
diff -r 4964b8417222 -r 2950bbfee1f7 crypto/dist/ssh/xmalloc.c
--- a/crypto/dist/ssh/xmalloc.c Wed Feb 07 18:01:30 2001 +0000
+++ b/crypto/dist/ssh/xmalloc.c Wed Feb 07 18:05:23 2001 +0000
@@ -27,7 +27,7 @@
fatal("xmalloc: zero size");
ptr = malloc(size);
if (ptr == NULL)
- fatal("xmalloc: out of memory (allocating %d bytes)", (int) size);
+ fatal("xmalloc: out of memory (allocating %lu bytes)", (u_long) size);
return ptr;
}
@@ -42,7 +42,7 @@
fatal("xrealloc: NULL pointer given as argument");
new_ptr = realloc(ptr, new_size);
if (new_ptr == NULL)
- fatal("xrealloc: out of memory (new_size %d bytes)", (int) new_size);
+ fatal("xrealloc: out of memory (new_size %lu bytes)", (u_long) new_size);
return new_ptr;
}
Home |
Main Index |
Thread Index |
Old Index