summaryrefslogtreecommitdiff
path: root/lib/debug.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2013-01-21 11:02:17 +0100
committerLinus Nordberg <linus@nordberg.se>2013-01-21 11:02:17 +0100
commit35311406413e0418112f7c295fee054a3506cbe8 (patch)
treef463a573a83951fb229a358425e08d9c7484268b /lib/debug.c
parentdc61b6b2c2dd3d7b47d83dc6d574bd65dffeadd6 (diff)
parentb8260ee68d9bc60f3204f860cc6919964a6e9464 (diff)
Merge branch 'libradsec-new-client' into libradsec
Diffstat (limited to 'lib/debug.c')
-rw-r--r--lib/debug.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/debug.c b/lib/debug.c
index 3d3a2b9..25c7fd6 100644
--- a/lib/debug.c
+++ b/lib/debug.c
@@ -1,13 +1,14 @@
/* Copyright 2011 NORDUnet A/S. All rights reserved.
- See the file COPYING for licensing information. */
+ See LICENSE for licensing information. */
#if defined HAVE_CONFIG_H
#include <config.h>
#endif
+#include <sys/types.h>
#include <stdio.h>
#include <assert.h>
-#include <freeradius/libradius.h>
+#include <radius/client.h>
#include <radsec/radsec.h>
#include <radsec/radsec-impl.h>
#include "debug.h"
@@ -21,10 +22,10 @@ rs_dump_packet (const struct rs_packet *pkt)
return;
p = pkt->rpkt;
- fprintf (stderr, "\tCode: %u, Identifier: %u, Lenght: %u\n",
+ fprintf (stderr, "\tCode: %u, Identifier: %u, Lenght: %zu\n",
p->code,
p->id,
- p->data_len);
+ p->sizeof_data);
fflush (stderr);
}