summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/ui.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-01 07:44:23 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-01 07:44:23 +0000
commitf513dc36f4e8026dcc54d6eca9240142830b7670 (patch)
treea7695df419f6006fc1e66fb26caedd25d34087d7 /sbin/isakmpd/ui.c
parent715efc5fb1f53da06a4bbf265ecf4758c59b5f52 (diff)
size_t must be cast to (unsigned long) and printed using %lu
Diffstat (limited to 'sbin/isakmpd/ui.c')
-rw-r--r--sbin/isakmpd/ui.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sbin/isakmpd/ui.c b/sbin/isakmpd/ui.c
index 555da56f938..1f3f370859e 100644
--- a/sbin/isakmpd/ui.c
+++ b/sbin/isakmpd/ui.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ui.c,v 1.28 2002/03/19 04:00:59 angelos Exp $ */
+/* $OpenBSD: ui.c,v 1.29 2002/06/01 07:44:22 deraadt Exp $ */
/* $EOM: ui.c,v 1.43 2000/10/05 09:25:12 niklas Exp $ */
/*
@@ -409,7 +409,7 @@ ui_handler (void)
buf = malloc (sz);
if (!buf)
{
- log_print ("ui_handler: malloc (%d) failed", sz);
+ log_print ("ui_handler: malloc (%lu) failed", (unsigned long)sz);
return;
}
p = buf;
@@ -422,7 +422,8 @@ ui_handler (void)
new_buf = realloc (buf, sz * 2);
if (!new_buf)
{
- log_print ("ui_handler: realloc (%p, %d) failed", buf, sz * 2);
+ log_print ("ui_handler: realloc (%p, %lu) failed", buf,
+ (unsigned long)sz * 2);
free (buf);
buf = 0;
return;
@@ -436,7 +437,8 @@ ui_handler (void)
n = read (ui_socket, p, resid);
if (n == -1)
{
- log_error ("ui_handler: read (%d, %p, %d)", ui_socket, p, resid);
+ log_error ("ui_handler: read (%d, %p, %lu)", ui_socket, p,
+ (unsigned long)resid);
return;
}