************************************************************************/
static CS_RETCODE CS_PUBLIC
-clientmsg_callback(context, conn, emsgp)
-CS_CONTEXT *context;
-CS_CONNECTION *conn;
-CS_CLIENTMSG *emsgp;
+clientmsg_callback(UNUSED CS_CONTEXT *context, UNUSED CS_CONNECTION *conn, CS_CLIENTMSG *emsgp)
{
/*
************************************************************************/
static CS_RETCODE CS_PUBLIC
-csmsg_callback(context, emsgp)
-CS_CONTEXT *context;
-CS_CLIENTMSG *emsgp;
+csmsg_callback(UNUSED CS_CONTEXT *context, CS_CLIENTMSG *emsgp)
{
/*
************************************************************************/
static CS_RETCODE CS_PUBLIC
-servermsg_callback(cp, chp, msgp)
-CS_CONTEXT *cp;
-CS_CONNECTION *chp;
-CS_SERVERMSG *msgp;
+servermsg_callback(UNUSED CS_CONTEXT *cp, UNUSED CS_CONNECTION *chp, CS_SERVERMSG *msgp)
{
/*
* connection
*
*************************************************************************/
-static const char *sql_error(rlm_sql_handle_t *handle, rlm_sql_config_t *config) {
+static const char *sql_error(UNUSED rlm_sql_handle_t *handle, UNUSED rlm_sql_config_t *config)
+{
static char msg='\0';
/*
static char msgbuf[2048];
* Purpose: Free socket and private connection data
*
*************************************************************************/
-static int sql_destroy_socket(rlm_sql_handle_t *handle, rlm_sql_config_t *config)
+static int sql_destroy_socket(rlm_sql_handle_t *handle, UNUSED rlm_sql_config_t *config)
{
free(handle->conn);
handle->conn = NULL;
* connection and cleans up any open handles.
*
*************************************************************************/
-static int sql_close(rlm_sql_handle_t *handle, rlm_sql_config_t *config) {
+static int sql_close(UNUSED rlm_sql_handle_t *handle, UNUSED rlm_sql_config_t *config) {
return 0;
}
* Purpose: End the select query, such as freeing memory or result
*
*************************************************************************/
-static int sql_finish_select_query(rlm_sql_handle_t *handle, rlm_sql_config_t *config) {
+static int sql_finish_select_query(rlm_sql_handle_t *handle, UNUSED rlm_sql_config_t *config) {
rlm_sql_sybase_sock *sybase_sock = handle->conn;
int i=0;
* set for the query.
*
*************************************************************************/
-static int sql_store_result(rlm_sql_handle_t *handle, rlm_sql_config_t *config) {
+static int sql_store_result(UNUSED rlm_sql_handle_t *handle, UNUSED rlm_sql_config_t *config) {
/*
** Not needed for Sybase, code that may have gone here is
** in sql_select_query and sql_fetch_row
* 0 on success, -1 on failure, SQL_DOWN if 'database is down'.
*
*************************************************************************/
-int sql_fetch_row(rlm_sql_handle_t *handle, rlm_sql_config_t *config) {
+static int sql_fetch_row(rlm_sql_handle_t *handle, rlm_sql_config_t *config) {
rlm_sql_sybase_sock *sybase_sock = handle->conn;
CS_INT ret, count;
* for a result set
*
*************************************************************************/
-static int sql_free_result(rlm_sql_handle_t *handle, rlm_sql_config_t *config) {
+static int sql_free_result(UNUSED rlm_sql_handle_t *handle, UNUSED rlm_sql_config_t *config) {
/*
** Not implemented, never called from rlm_sql anyway
* Purpose: End the query, such as freeing memory
*
*************************************************************************/
-static int sql_finish_query(rlm_sql_handle_t *handle, rlm_sql_config_t *config)
+static int sql_finish_query(rlm_sql_handle_t *handle, UNUSED rlm_sql_config_t *config)
{
rlm_sql_sybase_sock *sybase_sock = handle->conn;