pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Missing void arguments in a couple of declarations
2+ messages / 2 participants
[nested] [flat]

* Missing void arguments in a couple of declarations
@ 2014-03-12 04:27 Michael Paquier <michael.paquier@gmail.com>
  2014-03-12 07:29 ` Re: Missing void arguments in a couple of declarations Heikki Linnakangas <hlinnakangas@vmware.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Michael Paquier @ 2014-03-12 04:27 UTC (permalink / raw)
  To: pgsql-odbc

Hi all,

Some functions in psqlodbc.h and environ.h are missing some "void" in
their arguments. I imagine that they should be fixed for correctness,
so patch attached.
Regards,
-- 
Michael

-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc

Attachments:

20140312_pgodbc_missing_void.patch (text/x-diff, 1.3K) download diff --git a/environ.h b/environ.h index 5e4000b..1b0a9bf 100644 --- a/environ.h +++ b/environ.h @@ -41,8 +41,8 @@ char EN_get_error(EnvironmentClass *self, int *number, char **message); char EN_add_connection(EnvironmentClass *self, ConnectionClass *conn); char EN_remove_connection(EnvironmentClass *self, ConnectionClass *conn); void EN_log_error(const char *func, char *desc, EnvironmentClass *self); -int getConnCount(); -ConnectionClass * const *getConnList(); +int getConnCount(void); +ConnectionClass * const *getConnList(void); #define EN_OV_ODBC2 1L #define EN_CONN_POOLING (1L<<1) @@ -96,8 +96,8 @@ ConnectionClass * const *getConnList(); #define DELETE_COMMON_CS #endif /* WIN_MULTITHREAD_SUPPORT */ -void shortterm_common_lock(); -void shortterm_common_unlock(); +void shortterm_common_lock(void); +void shortterm_common_unlock(void); #ifdef __cplusplus } #endif diff --git a/psqlodbc.h b/psqlodbc.h index 1f3841a..a3e0fbf 100644 --- a/psqlodbc.h +++ b/psqlodbc.h @@ -290,9 +290,9 @@ typedef double SDOUBLE; #define DRIVER_FILE_NAME "psqlodbca.so" #endif #endif /* WIN32 */ -BOOL isMsAccess(); -BOOL isMsQuery(); -BOOL isSqlServr(); +BOOL isMsAccess(void); +BOOL isMsQuery(void); +BOOL isSqlServr(void); /* ESCAPEs */ #define ESCAPE_IN_LITERAL '\\'
^ permalink raw reply [nested|flat] 2+ messages in thread

* Re: Missing void arguments in a couple of declarations
  2014-03-12 04:27 Missing void arguments in a couple of declarations Michael Paquier <michael.paquier@gmail.com>
@ 2014-03-12 07:29 ` Heikki Linnakangas <hlinnakangas@vmware.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Heikki Linnakangas @ 2014-03-12 07:29 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; +Cc: pgsql-odbc

On 03/12/2014 06:27 AM, Michael Paquier wrote:
> Hi all,
>
> Some functions in psqlodbc.h and environ.h are missing some "void" in
> their arguments. I imagine that they should be fixed for correctness,
> so patch attached.

Thanks, pushed. I found & fixed a couple more cases of that, and also 
changed the function definitions in .c files for consistency, even 
though that's not strictly required for correctness AFAIK.

- Heikki


-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2014-03-12 07:29 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-03-12 04:27 Missing void arguments in a couple of declarations Michael Paquier <michael.paquier@gmail.com>
2014-03-12 07:29 ` Heikki Linnakangas <hlinnakangas@vmware.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox