(mu_sql_dispatch.errstr): Changed return type to const char*
Showing
4 changed files
with
9 additions
and
9 deletions
1 | /* GNU Mailutils -- a suite of utilities for electronic mail | 1 | /* GNU Mailutils -- a suite of utilities for electronic mail |
2 | Copyright (C) 2004 Free Software Foundation, Inc. | 2 | Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
3 | 3 | ||
4 | This library is free software; you can redistribute it and/or | 4 | This library is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU Lesser General Public | 5 | modify it under the terms of the GNU Lesser General Public |
... | @@ -78,7 +78,7 @@ struct mu_sql_dispatch | ... | @@ -78,7 +78,7 @@ struct mu_sql_dispatch |
78 | int (*get_column) (mu_sql_connection_t conn, size_t nrow, size_t ncol, | 78 | int (*get_column) (mu_sql_connection_t conn, size_t nrow, size_t ncol, |
79 | char **pdata); | 79 | char **pdata); |
80 | 80 | ||
81 | char *(*errstr) (mu_sql_connection_t conn); | 81 | const char *(*errstr) (mu_sql_connection_t conn); |
82 | }; | 82 | }; |
83 | 83 | ||
84 | /* Public interfaces */ | 84 | /* Public interfaces */ |
... | @@ -103,6 +103,6 @@ int mu_sql_num_columns (mu_sql_connection_t conn, size_t *np); | ... | @@ -103,6 +103,6 @@ int mu_sql_num_columns (mu_sql_connection_t conn, size_t *np); |
103 | int mu_sql_get_column (mu_sql_connection_t conn, size_t nrow, size_t ncol, | 103 | int mu_sql_get_column (mu_sql_connection_t conn, size_t nrow, size_t ncol, |
104 | char **pdata); | 104 | char **pdata); |
105 | 105 | ||
106 | char *mu_sql_strerror (mu_sql_connection_t conn); | 106 | const char *mu_sql_strerror (mu_sql_connection_t conn); |
107 | 107 | ||
108 | #endif | 108 | #endif | ... | ... |
1 | /* GNU Mailutils -- a suite of utilities for electronic mail | 1 | /* GNU Mailutils -- a suite of utilities for electronic mail |
2 | Copyright (C) 2004 Free Software Foundation, Inc. | 2 | Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
3 | 3 | ||
4 | This library is free software; you can redistribute it and/or | 4 | This library is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU Lesser General Public | 5 | 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) | ... | @@ -187,7 +187,7 @@ get_column (mu_sql_connection_t conn, size_t nrow, size_t ncol, char **pdata) |
187 | return 0; | 187 | return 0; |
188 | } | 188 | } |
189 | 189 | ||
190 | static char * | 190 | static const char * |
191 | errstr (mu_sql_connection_t conn) | 191 | errstr (mu_sql_connection_t conn) |
192 | { | 192 | { |
193 | struct mu_mysql_data *mp = conn->data; | 193 | struct mu_mysql_data *mp = conn->data; | ... | ... |
1 | /* GNU Mailutils -- a suite of utilities for electronic mail | 1 | /* GNU Mailutils -- a suite of utilities for electronic mail |
2 | Copyright (C) 2004 Free Software Foundation, Inc. | 2 | Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
3 | 3 | ||
4 | This library is free software; you can redistribute it and/or | 4 | This library is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU Lesser General Public | 5 | 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) | ... | @@ -156,7 +156,7 @@ get_column (mu_sql_connection_t conn, size_t nrow, size_t ncol, char **pdata) |
156 | return 0; | 156 | return 0; |
157 | } | 157 | } |
158 | 158 | ||
159 | static char * | 159 | static const char * |
160 | errstr (mu_sql_connection_t conn) | 160 | errstr (mu_sql_connection_t conn) |
161 | { | 161 | { |
162 | struct mu_pgsql_data *dp = conn->data; | 162 | struct mu_pgsql_data *dp = conn->data; | ... | ... |
1 | /* GNU Mailutils -- a suite of utilities for electronic mail | 1 | /* GNU Mailutils -- a suite of utilities for electronic mail |
2 | Copyright (C) 2004 Free Software Foundation, Inc. | 2 | Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
3 | 3 | ||
4 | This library is free software; you can redistribute it and/or | 4 | This library is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU Lesser General Public | 5 | 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, | ... | @@ -360,7 +360,7 @@ mu_sql_get_column (mu_sql_connection_t conn, size_t nrow, size_t ncol, |
360 | } | 360 | } |
361 | 361 | ||
362 | 362 | ||
363 | char * | 363 | const char * |
364 | mu_sql_strerror (mu_sql_connection_t conn) | 364 | mu_sql_strerror (mu_sql_connection_t conn) |
365 | { | 365 | { |
366 | if (!conn) | 366 | if (!conn) | ... | ... |
-
Please register or sign in to post a comment