diff options
| author | Christopher Jones <sixd@php.net> | 2009-10-01 06:06:41 +0000 |
|---|---|---|
| committer | Christopher Jones <sixd@php.net> | 2009-10-01 06:06:41 +0000 |
| commit | 8fca6e46eb8d58941ff6dc60266a6760f6138e6c (patch) | |
| tree | 1dd4cbbfabfd1096013ae950623762d04c3057fa /ext/oci8/oci8_interface.c | |
| parent | 609804cd4457e906987975eaa8451ac2cf76cbde (diff) | |
| download | php-git-8fca6e46eb8d58941ff6dc60266a6760f6138e6c.tar.gz | |
Eliminate type warnings. This change is not needed in other branches
Diffstat (limited to 'ext/oci8/oci8_interface.c')
| -rw-r--r-- | ext/oci8/oci8_interface.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/oci8/oci8_interface.c b/ext/oci8/oci8_interface.c index 500822d2b6..151367acb4 100644 --- a/ext/oci8/oci8_interface.c +++ b/ext/oci8/oci8_interface.c @@ -1584,7 +1584,7 @@ PHP_FUNCTION(oci_pconnect) Return the last error of stmt|connection|global. If no error happened returns false. */ PHP_FUNCTION(oci_error) { - zval *arg; + zval *arg = NULL; php_oci_statement *statement; php_oci_connection *connection; text *errbuf; @@ -1721,7 +1721,7 @@ PHP_FUNCTION(oci_set_prefetch) PHP_FUNCTION(oci_password_change) { zval *z_connection; - text *user, *pass_old, *pass_new, *dbname; + char *user, *pass_old, *pass_new, *dbname; int user_len, pass_old_len, pass_new_len, dbname_len; php_oci_connection *connection; @@ -1747,7 +1747,7 @@ PHP_FUNCTION(oci_password_change) RETURN_FALSE; } - if (php_oci_password_change(connection, (char *)user, user_len, (char *)pass_old, pass_old_len, (char *)pass_new, pass_new_len TSRMLS_CC)) { + if (php_oci_password_change(connection, user, user_len, pass_old, pass_old_len, pass_new, pass_new_len TSRMLS_CC)) { RETURN_FALSE; } RETURN_TRUE; @@ -1766,7 +1766,7 @@ PHP_FUNCTION(oci_password_change) RETURN_FALSE; } - connection = php_oci_do_connect_ex((char *)user, user_len, (char *)pass_old, pass_old_len, (char *)pass_new, pass_new_len, (char *)dbname, dbname_len, NULL, OCI_DEFAULT, 0, 0 TSRMLS_CC); + connection = php_oci_do_connect_ex(user, user_len, pass_old, pass_old_len, pass_new, pass_new_len, dbname, dbname_len, NULL, OCI_DEFAULT, 0, 0 TSRMLS_CC); if (!connection) { RETURN_FALSE; } |
