-indentation, code cleanup
[oweals/gnunet.git] / src / postgres / postgres.c
index 40bda243623122082918901ffd8b90c5dd4bd776..d2d52aec52694a51052cf5df614c20134778614f 100644 (file)
@@ -103,11 +103,11 @@ GNUNET_POSTGRES_exec_ (PGconn * dbh, const char *sql, const char *filename,
  */
 int
 GNUNET_POSTGRES_prepare_ (PGconn * dbh, const char *name, const char *sql,
-                          int nparms, const char *filename, int line)
+                          int nparams, const char *filename, int line)
 {
   PGresult *ret;
 
-  ret = PQprepare (dbh, name, sql, nparms, NULL);
+  ret = PQprepare (dbh, name, sql, nparams, NULL);
   if (GNUNET_OK !=
       GNUNET_POSTGRES_check_result_ (dbh, ret, PGRES_COMMAND_OK, "PQprepare",
                                      sql, filename, line))
@@ -158,7 +158,7 @@ GNUNET_POSTGRES_connect (const struct GNUNET_CONFIGURATION_Handle * cfg,
  * Delete the row identified by the given rowid (qid
  * in postgres).
  *
- * @param database handle
+ * @param dbh database handle
  * @param stmt name of the prepared statement
  * @param rowid which row to delete
  * @return GNUNET_OK on success