summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2010-09-02 00:51:14 +0200
committerLinus Nordberg <linus@nordu.net>2010-09-02 00:51:14 +0200
commit2efb97a4d9c54f975ca38c3f5b3d4cb8f60dd47b (patch)
tree329439c5ade6461319ae224d8748399fd1470986 /lib
parent26e77e4a9d58b2d792458c26832a594f14550424 (diff)
Change the order of parameters to rc_connect() -- let those who may
default to 0 or NULL come last.
Diffstat (limited to 'lib')
-rw-r--r--lib/libradsec-base.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libradsec-base.h b/lib/libradsec-base.h
index 57a86ef..cb4308d 100644
--- a/lib/libradsec-base.h
+++ b/lib/libradsec-base.h
@@ -8,7 +8,7 @@
/* Example usage. */
#if 0
{
- fd = rs_connect (address, psk);
+ fd = rs_connect (address, 0, NULL);
if (!fd)
/* check errno */ ;
n = read (fd, buf, buflen);
@@ -49,8 +49,8 @@
@return A file descriptor or -1 if an error occurred, in which
case errno is set appropriately. */
-int rs_connect(enum rs_conn_type type,
- const struct sockaddr_storage *addr,
+int rs_connect(const struct sockaddr_storage *addr,
+ enum rs_conn_type type,
const struct rs_credentials *cred);
/** Disconnect.