From 2efb97a4d9c54f975ca38c3f5b3d4cb8f60dd47b Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Thu, 2 Sep 2010 00:51:14 +0200 Subject: [PATCH] Change the order of parameters to rc_connect() -- let those who may default to 0 or NULL come last. --- lib/libradsec-base.h | 6 +++--- 1 file 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. -- 2.1.4