diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-01 22:17:20 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-01 22:17:20 +0000 |
commit | 893349d3cb8e86e2a8ce8cc161670d5948500f67 (patch) | |
tree | 8fcff7048b314cac2f16ea791c76f4db255ea8e4 /src/postgres | |
parent | 2c510cb5f39de9c2ea26225a53cfebd19adb228c (diff) | |
download | gnunet-893349d3cb8e86e2a8ce8cc161670d5948500f67.tar.gz gnunet-893349d3cb8e86e2a8ce8cc161670d5948500f67.zip |
-spell param(eter) correctly
Diffstat (limited to 'src/postgres')
-rw-r--r-- | src/postgres/postgres.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/postgres/postgres.c b/src/postgres/postgres.c index 100145289..d2d52aec5 100644 --- a/src/postgres/postgres.c +++ b/src/postgres/postgres.c | |||
@@ -96,18 +96,18 @@ GNUNET_POSTGRES_exec_ (PGconn * dbh, const char *sql, const char *filename, | |||
96 | * @param dbh database handle | 96 | * @param dbh database handle |
97 | * @param name name for the prepared SQL statement | 97 | * @param name name for the prepared SQL statement |
98 | * @param sql SQL code to prepare | 98 | * @param sql SQL code to prepare |
99 | * @param nparms number of parameters in sql | 99 | * @param nparams number of parameters in sql |
100 | * @param filename filename for error reporting | 100 | * @param filename filename for error reporting |
101 | * @param line code line for error reporting | 101 | * @param line code line for error reporting |
102 | * @return GNUNET_OK on success | 102 | * @return GNUNET_OK on success |
103 | */ | 103 | */ |
104 | int | 104 | int |
105 | GNUNET_POSTGRES_prepare_ (PGconn * dbh, const char *name, const char *sql, | 105 | GNUNET_POSTGRES_prepare_ (PGconn * dbh, const char *name, const char *sql, |
106 | int nparms, const char *filename, int line) | 106 | int nparams, const char *filename, int line) |
107 | { | 107 | { |
108 | PGresult *ret; | 108 | PGresult *ret; |
109 | 109 | ||
110 | ret = PQprepare (dbh, name, sql, nparms, NULL); | 110 | ret = PQprepare (dbh, name, sql, nparams, NULL); |
111 | if (GNUNET_OK != | 111 | if (GNUNET_OK != |
112 | GNUNET_POSTGRES_check_result_ (dbh, ret, PGRES_COMMAND_OK, "PQprepare", | 112 | GNUNET_POSTGRES_check_result_ (dbh, ret, PGRES_COMMAND_OK, "PQprepare", |
113 | sql, filename, line)) | 113 | sql, filename, line)) |