Builds in 2.0
authoraland <aland>
Wed, 5 Mar 2008 10:37:53 +0000 (10:37 +0000)
committeraland <aland>
Wed, 5 Mar 2008 10:37:53 +0000 (10:37 +0000)
src/modules/rlm_sql/drivers/rlm_sql_sqlite/sql_sqlite.c

index 75321d4..61b8927 100644 (file)
  * Copyright 2007 Apple Inc.
  */
 
+#include <freeradius-devel/ident.h>
+RCSID("$Id$")
+
+#include <freeradius-devel/radiusd.h>
 
-#include <stdio.h>
 #include <sys/stat.h>
-#include <stdlib.h>
-#include <string.h>
 
 #include <sqlite3.h>
 
-#include "radiusd.h"
-#include "config.h"
 #include "rlm_sql.h"
 
 typedef struct rlm_sql_sqlite_sock {
@@ -331,7 +330,7 @@ static int sql_free_result(SQLSOCK * sqlsocket, SQL_CONFIG *config)
  *               connection
  *
  *************************************************************************/
-static char *sql_error(SQLSOCK * sqlsocket, SQL_CONFIG *config)
+static const char *sql_error(SQLSOCK * sqlsocket, SQL_CONFIG *config)
 {
        return NULL;
 }