aboutsummaryrefslogtreecommitdiff
path: root/src/my/my.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-06-07 11:47:47 +0000
committerChristian Grothoff <christian@grothoff.org>2016-06-07 11:47:47 +0000
commit1893283990d3c128c67da900fde4b8c71b1939a7 (patch)
tree288ff80a631e6c169340b4ba3508c387c146f220 /src/my/my.c
parentf1a8e79f1cff6a135297cf4eabb6db4733456ad5 (diff)
-fix misc issues
Diffstat (limited to 'src/my/my.c')
-rw-r--r--src/my/my.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/my/my.c b/src/my/my.c
index 93b0a05b4e..841ef28a4b 100644
--- a/src/my/my.c
+++ b/src/my/my.c
@@ -39,7 +39,6 @@
#GNUNET_YES if we can prepare all statement
#GNUNET_SYSERR if we can't prepare all statement
*/
-
int
GNUNET_MY_exec_prepared (struct GNUNET_MYSQL_Context *mc,
struct GNUNET_MYSQL_StatementHandle *sh,
@@ -82,15 +81,15 @@ GNUNET_MY_exec_prepared (struct GNUNET_MYSQL_Context *mc,
return GNUNET_SYSERR;
}
- }
- if (mysql_stmt_execute (stmt))
- {
- GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, "mysql",
- _("`%s' failed at %s:%d with error: %s\n"),
- "mysql_stmt_execute", __FILE__, __LINE__,
- mysql_stmt_error (stmt));
- GNUNET_MYSQL_statements_invalidate (mc);
- return GNUNET_SYSERR;
+ if (mysql_stmt_execute (stmt))
+ {
+ GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, "mysql",
+ _("`%s' failed at %s:%d with error: %s\n"),
+ "mysql_stmt_execute", __FILE__, __LINE__,
+ mysql_stmt_error (stmt));
+ GNUNET_MYSQL_statements_invalidate (mc);
+ return GNUNET_SYSERR;
+ }
}
return GNUNET_OK;
@@ -175,7 +174,7 @@ GNUNET_MY_extract_result (struct GNUNET_MYSQL_StatementHandle *sh,
}
ret = mysql_stmt_fetch (stmt);
-
+
if (MYSQL_NO_DATA == ret)
return GNUNET_NO;
if ((0 != ret ) & (MYSQL_DATA_TRUNCATED != ret))