aboutsummaryrefslogtreecommitdiff
path: root/src/printf.c
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2004-06-16 12:02:43 +0000
committerdanielk1977 <danielk1977@noemail.net>2004-06-16 12:02:43 +0000
commit742f947b1daf25f4354322ee980b9e6afe363208 (patch)
tree48911cae07543e7325c19f8bc2b3fb1a101a31fd /src/printf.c
parentcfe9a69f907d71a819aa4f86f1b56ed74840ac26 (diff)
downloadsqlite-742f947b1daf25f4354322ee980b9e6afe363208.tar.gz
sqlite-742f947b1daf25f4354322ee980b9e6afe363208.zip
Trivial modifications to prevent compiler warnings. (CVS 1607)
FossilOrigin-Name: 7974c9a6f5ed86f02176376d99d909c43a4ae455
Diffstat (limited to 'src/printf.c')
-rw-r--r--src/printf.c50
1 files changed, 25 insertions, 25 deletions
diff --git a/src/printf.c b/src/printf.c
index 93eefef24..13d4e116f 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -825,22 +825,6 @@ void sqlite3DebugPrintf(const char *zFormat, ...){
**
** These routines are all just simple wrappers.
*/
-int sqlite3_exec_printf(
- sqlite *db, /* An open database */
- const char *sqlFormat, /* printf-style format string for the SQL */
- sqlite_callback xCallback, /* Callback function */
- void *pArg, /* 1st argument to callback function */
- char **errmsg, /* Error msg written here */
- ... /* Arguments to the format string. */
-){
- va_list ap;
- int rc;
-
- va_start(ap, errmsg);
- rc = sqlite3_exec_vprintf(db, sqlFormat, xCallback, pArg, errmsg, ap);
- va_end(ap);
- return rc;
-}
int sqlite3_exec_vprintf(
sqlite *db, /* An open database */
const char *sqlFormat, /* printf-style format string for the SQL */
@@ -857,20 +841,19 @@ int sqlite3_exec_vprintf(
free(zSql);
return rc;
}
-int sqlite3_get_table_printf(
- sqlite *db, /* An open database */
- const char *sqlFormat, /* printf-style format string for the SQL */
- char ***resultp, /* Result written to a char *[] that this points to */
- int *nrow, /* Number of result rows written here */
- int *ncol, /* Number of result columns written here */
- char **errmsg, /* Error msg written here */
- ... /* Arguments to the format string */
+int sqlite3_exec_printf(
+ sqlite *db, /* An open database */
+ const char *sqlFormat, /* printf-style format string for the SQL */
+ sqlite_callback xCallback, /* Callback function */
+ void *pArg, /* 1st argument to callback function */
+ char **errmsg, /* Error msg written here */
+ ... /* Arguments to the format string. */
){
va_list ap;
int rc;
va_start(ap, errmsg);
- rc = sqlite3_get_table_vprintf(db, sqlFormat, resultp, nrow, ncol, errmsg, ap);
+ rc = sqlite3_exec_vprintf(db, sqlFormat, xCallback, pArg, errmsg, ap);
va_end(ap);
return rc;
}
@@ -891,3 +874,20 @@ int sqlite3_get_table_vprintf(
free(zSql);
return rc;
}
+int sqlite3_get_table_printf(
+ sqlite *db, /* An open database */
+ const char *sqlFormat, /* printf-style format string for the SQL */
+ char ***resultp, /* Result written to a char *[] that this points to */
+ int *nrow, /* Number of result rows written here */
+ int *ncol, /* Number of result columns written here */
+ char **errmsg, /* Error msg written here */
+ ... /* Arguments to the format string */
+){
+ va_list ap;
+ int rc;
+
+ va_start(ap, errmsg);
+ rc = sqlite3_get_table_vprintf(db, sqlFormat, resultp, nrow, ncol, errmsg, ap);
+ va_end(ap);
+ return rc;
+}