From 3d954bfd2f658ac05a0f20a1241738ed3e3fdd28 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Wed, 5 Feb 2014 11:10:02 +0100 Subject: Move lib to the root. --- lib/debug.c | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 lib/debug.c (limited to 'lib/debug.c') diff --git a/lib/debug.c b/lib/debug.c deleted file mode 100644 index 903c793..0000000 --- a/lib/debug.c +++ /dev/null @@ -1,46 +0,0 @@ -/* Copyright 2011 NORDUnet A/S. All rights reserved. - See LICENSE for licensing information. */ - -#if defined HAVE_CONFIG_H -#include -#endif - -#include -#include -#include -#include -#include -#include -#include "debug.h" - -void -rs_dump_packet (const struct rs_packet *pkt) -{ - const RADIUS_PACKET *p = NULL; - - if (!pkt || !pkt->rpkt) - return; - p = pkt->rpkt; - - fprintf (stderr, "\tCode: %u, Identifier: %u, Lenght: %zu\n", - p->code, - p->id, - p->sizeof_data); - fflush (stderr); -} - -#if defined DEBUG -int -_rs_debug (const char *fmt, ...) -{ - int n; - va_list args; - - va_start (args, fmt); - n = vfprintf (stderr, fmt, args); - va_end (args); - fflush (stderr); - - return n; -} -#endif -- cgit v1.1