cvs: pecl /pdo_mysql mysql_driver.c mysql_statement.c
| From: | Ilia Alshanetsky | Date: | Sat, 12 Feb 2005 20:58:29 +0000 |
| Subject: | cvs: pecl /pdo_mysql mysql_driver.c mysql_statement.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-2520@lists.php.net to get a copy of this message | ||
iliaa Sat Feb 12 15:58:29 2005 EDT
Modified files:
/pecl/pdo_mysql mysql_driver.c mysql_statement.c
Log:
Fixed compiler warnings.
http://cvs.php.net/diff.php/pecl/pdo_mysql/mysql_driver.c?r1=1.28&r2=1.29&ty=u
Index: pecl/pdo_mysql/mysql_driver.c
diff -u pecl/pdo_mysql/mysql_driver.c:1.28 pecl/pdo_mysql/mysql_driver.c:1.29
--- pecl/pdo_mysql/mysql_driver.c:1.28 Wed Feb 9 20:34:39 2005
+++ pecl/pdo_mysql/mysql_driver.c Sat Feb 12 15:58:29 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: mysql_driver.c,v 1.28 2005/02/10 01:34:39 wez Exp $ */
+/* $Id: mysql_driver.c,v 1.29 2005/02/12 20:58:29 iliaa Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -239,7 +239,7 @@
pdo_mysql_db_handle *H;
int i, ret = 0;
char *host = NULL, *unix_socket = NULL;
- unsigned int port;
+ unsigned int port = 3306;
char *dbname;
struct pdo_data_src_parser vars[] = {
{ "charset", NULL, 0 },
http://cvs.php.net/diff.php/pecl/pdo_mysql/mysql_statement.c?r1=1.12&r2=1.13&ty=u
Index: pecl/pdo_mysql/mysql_statement.c
diff -u pecl/pdo_mysql/mysql_statement.c:1.12 pecl/pdo_mysql/mysql_statement.c:1.13
--- pecl/pdo_mysql/mysql_statement.c:1.12 Sun Feb 6 18:22:37 2005
+++ pecl/pdo_mysql/mysql_statement.c Sat Feb 12 15:58:29 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: mysql_statement.c,v 1.12 2005/02/06 23:22:37 wez Exp $ */
+/* $Id: mysql_statement.c,v 1.13 2005/02/12 20:58:29 iliaa Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -34,7 +34,6 @@
static int pdo_mysql_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC)
{
pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data;
- int i;
if (S->result) {
/* free the resource */
@@ -51,7 +50,6 @@
static int pdo_mysql_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC)
{
- pdo_dbh_t *dbh = stmt->dbh;
pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data;
pdo_mysql_db_handle *H = S->H;