Commit 91ea068b 91ea068b25377e476512f5a72527d2722a3b11a3 by Sergey Poznyakoff

(mu_sql_dispatch.errstr): Changed return type to const char*

1 parent c291155f
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 2004 Free Software Foundation, Inc.
Copyright (C) 2004, 2005 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -78,7 +78,7 @@ struct mu_sql_dispatch
int (*get_column) (mu_sql_connection_t conn, size_t nrow, size_t ncol,
char **pdata);
char *(*errstr) (mu_sql_connection_t conn);
const char *(*errstr) (mu_sql_connection_t conn);
};
/* Public interfaces */
......@@ -103,6 +103,6 @@ int mu_sql_num_columns (mu_sql_connection_t conn, size_t *np);
int mu_sql_get_column (mu_sql_connection_t conn, size_t nrow, size_t ncol,
char **pdata);
char *mu_sql_strerror (mu_sql_connection_t conn);
const char *mu_sql_strerror (mu_sql_connection_t conn);
#endif
......
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 2004 Free Software Foundation, Inc.
Copyright (C) 2004, 2005 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -187,7 +187,7 @@ get_column (mu_sql_connection_t conn, size_t nrow, size_t ncol, char **pdata)
return 0;
}
static char *
static const char *
errstr (mu_sql_connection_t conn)
{
struct mu_mysql_data *mp = conn->data;
......
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 2004 Free Software Foundation, Inc.
Copyright (C) 2004, 2005 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -156,7 +156,7 @@ get_column (mu_sql_connection_t conn, size_t nrow, size_t ncol, char **pdata)
return 0;
}
static char *
static const char *
errstr (mu_sql_connection_t conn)
{
struct mu_pgsql_data *dp = conn->data;
......
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 2004 Free Software Foundation, Inc.
Copyright (C) 2004, 2005 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -360,7 +360,7 @@ mu_sql_get_column (mu_sql_connection_t conn, size_t nrow, size_t ncol,
}
char *
const char *
mu_sql_strerror (mu_sql_connection_t conn)
{
if (!conn)
......