~ubuntu-branches/ubuntu/natty/freeradius/natty-updates

« back to all changes in this revision

Viewing changes to src/lib/print.c

  • Committer: Bazaar Package Importer
  • Author(s): Paul Hampson
  • Date: 2006-01-15 13:34:13 UTC
  • mto: (3.1.3 dapper) (4.1.3 sid) (1.1.14 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20060115133413-zo1dslttvdoalqym
Tags: upstream-1.1.0
ImportĀ upstreamĀ versionĀ 1.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * print.c      Routines to print stuff.
3
3
 *
4
 
 * Version:     $Id: print.c,v 1.26.2.1 2005/04/21 22:06:06 aland Exp $
 
4
 * Version:     $Id: print.c,v 1.26.2.1.2.1 2005/12/12 10:52:01 nbk Exp $
5
5
 *
6
6
 *   This library is free software; you can redistribute it and/or
7
7
 *   modify it under the terms of the GNU Lesser General Public
20
20
 * Copyright 2000  The FreeRADIUS server project
21
21
 */
22
22
 
23
 
static const char rcsid[] = "$Id: print.c,v 1.26.2.1 2005/04/21 22:06:06 aland Exp $";
 
23
static const char rcsid[] = "$Id: print.c,v 1.26.2.1.2.1 2005/12/12 10:52:01 nbk Exp $";
24
24
 
25
25
#include        "autoconf.h"
26
26
 
170
170
                        a = buf;
171
171
                        break;
172
172
                case PW_TYPE_IPADDR:
173
 
                        if (vp->strvalue[0])
174
 
                                a = (char *)vp->strvalue;
175
 
                        else
176
 
                                a = ip_hostname((char *)vp->strvalue,
177
 
                                                sizeof(vp->strvalue),
178
 
                                                vp->lvalue);
 
173
                        a = ip_ntoa(buf, vp->lvalue);
179
174
                        break;
180
175
                case PW_TYPE_ABINARY:
181
176
#ifdef ASCEND_BINARY