ich versuche mich gerade an einem C Programm das ich in ein Debian Paket verpacken will. Leider komiliert es unter SID nicht:
Code: Alles auswählen
sql.c: In function '_pgsql_exec':
sql.c:283: error: 'settings' undeclared (first use in this function)
Code: Alles auswählen
static int _pgsql_exec(void *conn, const char *cmd, char *value, size_t size,
size_t *value_len, const sasl_utils_t *utils)
{
PGresult *result;
int row_count;
ExecStatusType status;
/* run the query */
result = PQexec(conn, cmd);
/* check the status */
status = PQresultStatus(result);
if (status == PGRES_COMMAND_OK) {
/* no results (BEGIN, COMMIT, DELETE, INSERT, UPDATE) */
PQclear(result);
return 0;
}
else if (status != PGRES_TUPLES_OK) {
/* error */
if (settings->sql_verbose)
utils->log(NULL, SASL_LOG_DEBUG, "sql plugin: %s ",
PQresStatus(status));
PQclear(result);
return -1;
}
bye, Martin