Order functions properly in conn.c.
[libradsec.git] / lib / attr.c
index 49735d9..74d352c 100644 (file)
@@ -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 <freeradius/libradius.h>
+/* NOTE: This file is not in use at the moment (libradsec-0.0.1).  */
+
+#if defined HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <radius/client.h>
 #include <radsec/radsec.h>
 #include <radsec/radsec-impl.h>
 
 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;
@@ -21,7 +31,7 @@ rs_attr_create(struct rs_connection *conn, struct rs_attr **attr, const char *ty
     {
       rs_attr_destroy (a);
       return rs_err_conn_push_fl (conn, RSE_FR, __FILE__, __LINE__,
-                                 "pairmake: %s", fr_strerror());
+                                 "pairmake: %s", fr_strerror ());
     }
 
   a->vp = vp;