summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli_exception.c
diff options
context:
space:
mode:
authorUlf Wendel <uw@php.net>2010-10-04 10:02:58 +0000
committerUlf Wendel <uw@php.net>2010-10-04 10:02:58 +0000
commite20c62d3be14b45de482d385c18f35c529347d8a (patch)
tree1d893ebd468eec173633eb8f2fa2e04b16ccbe6a /ext/mysqli/mysqli_exception.c
parente8c87c6d21670ced24b98a31a5b81dff6a526ef2 (diff)
downloadphp-git-e20c62d3be14b45de482d385c18f35c529347d8a.tar.gz
Sorry for the commit but compiler warnings are annoying and so are white spaces at the end of a line, if one uses an editor which removes them on save and diff's get blown
up by white space changes... Changes: - remove end of line white space - fix compiler warning "ext/mysqli/mysqli_priv.h:156:27: warning: no newline at end of file" - fix compiler warning "ext/mysqli/mysqli_fe.h:135:25: warning: no newline at end of file" - fix compiler warning "ext/mysqli/mysqli.c:896:11: warning: extra tokens at end of #ifdef directive"
Diffstat (limited to 'ext/mysqli/mysqli_exception.c')
-rw-r--r--ext/mysqli/mysqli_exception.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mysqli/mysqli_exception.c b/ext/mysqli/mysqli_exception.c
index 14b6c51c74..6372fb8ff1 100644
--- a/ext/mysqli/mysqli_exception.c
+++ b/ext/mysqli/mysqli_exception.c
@@ -36,13 +36,13 @@ const zend_function_entry mysqli_exception_methods[] = {
};
/* }}} */
-void php_mysqli_throw_sql_exception(char *sqlstate, int errorno TSRMLS_DC, char *format, ...)
+void php_mysqli_throw_sql_exception(char *sqlstate, int errorno TSRMLS_DC, char *format, ...)
{
zval *sql_ex;
va_list arg;
char *message;
- va_start(arg, format);
+ va_start(arg, format);
vspprintf(&message, 0, format, arg);
va_end(arg);;