summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/mailutils/sql.h6
-rw-r--r--sql/mysql.c4
-rw-r--r--sql/postgres.c4
-rw-r--r--sql/sql.c4
4 files changed, 9 insertions, 9 deletions
diff --git a/include/mailutils/sql.h b/include/mailutils/sql.h
index df90f66a7..a3c89ec36 100644
--- a/include/mailutils/sql.h
+++ b/include/mailutils/sql.h
@@ -1,5 +1,5 @@
/* 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
diff --git a/sql/mysql.c b/sql/mysql.c
index a65a20a12..866e2400c 100644
--- a/sql/mysql.c
+++ b/sql/mysql.c
@@ -1,5 +1,5 @@
/* 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;
diff --git a/sql/postgres.c b/sql/postgres.c
index 672641010..ef8dc3eaf 100644
--- a/sql/postgres.c
+++ b/sql/postgres.c
@@ -1,5 +1,5 @@
/* 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;
diff --git a/sql/sql.c b/sql/sql.c
index df59d8e78..719bdbfd8 100644
--- a/sql/sql.c
+++ b/sql/sql.c
@@ -1,5 +1,5 @@
/* 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)

Return to:

Send suggestions and report system problems to the System administrator.