Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
91ea068b
...
91ea068b25377e476512f5a72527d2722a3b11a3
authored
2005-01-05 15:41:26 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mu_sql_dispatch.errstr): Changed return type to const char*
1 parent
c291155f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
include/mailutils/sql.h
sql/mysql.c
sql/postgres.c
sql/sql.c
include/mailutils/sql.h
View file @
91ea068
/* 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
);
c
onst
c
har
*
(
*
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
);
c
onst
c
har
*
mu_sql_strerror
(
mu_sql_connection_t
conn
);
#endif
...
...
sql/mysql.c
View file @
91ea068
/* 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
c
onst
c
har
*
errstr
(
mu_sql_connection_t
conn
)
{
struct
mu_mysql_data
*
mp
=
conn
->
data
;
...
...
sql/postgres.c
View file @
91ea068
/* 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
c
onst
c
har
*
errstr
(
mu_sql_connection_t
conn
)
{
struct
mu_pgsql_data
*
dp
=
conn
->
data
;
...
...
sql/sql.c
View file @
91ea068
/* 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
*
c
onst
c
har
*
mu_sql_strerror
(
mu_sql_connection_t
conn
)
{
if
(
!
conn
)
...
...
Please
register
or
sign in
to post a comment