summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2011-03-07 09:53:40 +0100
committerLinus Nordberg <linus@nordu.net>2011-03-07 09:53:40 +0100
commit41af6cd03dac4eb905d0d3de574d2e4f3f9600eb (patch)
tree3e048f9f3deccbaac6a19cd7ceab0a3823b7740b /lib
parent725bec6f03436f9aedb3ffc7196049ab0f32f218 (diff)
Formatting changes.
Diffstat (limited to 'lib')
-rw-r--r--lib/radsec.c8
-rw-r--r--lib/request.c4
-rw-r--r--lib/send.c2
3 files changed, 8 insertions, 6 deletions
diff --git a/lib/radsec.c b/lib/radsec.c
index 6eb7c39..dd182c6 100644
--- a/lib/radsec.c
+++ b/lib/radsec.c
@@ -28,7 +28,7 @@
/* Public functions. */
int
-rs_context_create(struct rs_context **ctx, const char *dict)
+rs_context_create (struct rs_context **ctx, const char *dict)
{
int err = RSE_OK;
struct rs_context *h;
@@ -154,8 +154,10 @@ rs_context_destroy (struct rs_context *ctx)
rs_free (ctx, ctx);
}
-int rs_context_set_alloc_scheme(struct rs_context *ctx,
- struct rs_alloc_scheme *scheme)
+int
+rs_context_set_alloc_scheme (struct rs_context *ctx,
+ struct rs_alloc_scheme *scheme)
{
return rs_err_ctx_push_fl (ctx, RSE_NOSYS, __FILE__, __LINE__, NULL);
}
+
diff --git a/lib/request.c b/lib/request.c
index 9c4b58f..80a0a81 100644
--- a/lib/request.c
+++ b/lib/request.c
@@ -127,11 +127,11 @@ rs_request_send (struct rs_request *request, struct rs_packet **resp_msg)
conn->callbacks.received_cb = _rs_req_packet_received;
conn->callbacks.sent_cb = _rs_req_packet_sent;
- err = rs_packet_send(request->req_msg, request);
+ err = rs_packet_send (request->req_msg, request);
if (err)
goto cleanup;
- err = rs_conn_receive_packet(request->conn, request->req_msg, resp_msg);
+ err = rs_conn_receive_packet (request->conn, request->req_msg, resp_msg);
if (err)
goto cleanup;
diff --git a/lib/send.c b/lib/send.c
index c49eaa9..871d657 100644
--- a/lib/send.c
+++ b/lib/send.c
@@ -96,7 +96,7 @@ rs_packet_send (struct rs_packet *pkt, void *user_data)
bufferevent_setcb (conn->bev, NULL, tcp_write_cb, tcp_event_cb, pkt);
bufferevent_enable (conn->bev, EV_WRITE);
}
- else /* UDP */
+ else /* UDP */
{
err = event_add (conn->wev, NULL);
if (err < 0)