X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=lib%2Fattr.c;h=74d352ccb04aa8448e8ef8f69bc93d99fb349fb0;hb=0a3ac2ab74778832966237b6a3e488cb8d627ec4;hp=8dede27469df2474b6a1d9b2e0b5fc2ac4e83fb5;hpb=be4b786700ad03de5226951c043fefb345c0df4c;p=radsecproxy.git diff --git a/lib/attr.c b/lib/attr.c index 8dede27..74d352c 100644 --- a/lib/attr.c +++ b/lib/attr.c @@ -1,11 +1,21 @@ -/* See the file COPYING for licensing information. */ +/* Copyright 2010, 2011 NORDUnet A/S. All rights reserved. + See LICENSE for licensing information. */ -#include -#include -#include +/* NOTE: This file is not in use at the moment (libradsec-0.0.1). */ + +#if defined HAVE_CONFIG_H +#include +#endif + +#include +#include +#include int -rs_attr_create(struct rs_connection *conn, struct rs_attr **attr, const char *type, const char *val) +rs_attr_create(struct rs_connection *conn, + struct rs_attr **attr, + const char *type, + const char *val) { VALUE_PAIR *vp; struct rs_attr *a; @@ -13,15 +23,15 @@ rs_attr_create(struct rs_connection *conn, struct rs_attr **attr, const char *ty *attr = NULL; a = (struct rs_attr *) malloc (sizeof(struct rs_attr)); if (!a) - return rs_conn_err_push_fl (conn, RSE_NOMEM, __FILE__, __LINE__, NULL); + return rs_err_conn_push_fl (conn, RSE_NOMEM, __FILE__, __LINE__, NULL); memset (a, 0, sizeof(struct rs_attr)); vp = pairmake (type, val, T_OP_EQ); if (!vp) { rs_attr_destroy (a); - return rs_conn_err_push_fl (conn, RSE_FR, __FILE__, __LINE__, - "pairmake: %s", fr_strerror()); + return rs_err_conn_push_fl (conn, RSE_FR, __FILE__, __LINE__, + "pairmake: %s", fr_strerror ()); } a->vp = vp;