Browse Source

- export param types adjusted to PARAM_STR/STRING & PARAM_INT
- removed corresponding obsolete strlen(str_param) in init

Tomas Mandys 19 years ago
parent
commit
c89a6b92a0
1 changed files with 7 additions and 7 deletions
  1. 7 7
      modules/db_mysql/db_mod.c

+ 7 - 7
modules/db_mysql/db_mod.c

@@ -1,5 +1,5 @@
-/* 
- * $Id$ 
+/*
+ * $Id$
  *
  * MySQL module interface
  *
@@ -22,8 +22,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 /*
@@ -69,13 +69,13 @@ static cmd_export_t cmds[] = {
  * Exported parameters
  */
 static param_export_t params[] = {
-	{"ping_interval", INT_PARAM, &ping_interval},
-	{"auto_reconnect", INT_PARAM, &auto_reconnect},
+	{"ping_interval", PARAM_INT, &ping_interval},
+	{"auto_reconnect", PARAM_INT, &auto_reconnect},
 	{0, 0, 0}
 };
 
 
-struct module_exports exports = {	
+struct module_exports exports = {
 	"mysql",
 	cmds,
 	0,               /* RPC method */