freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: ZIGLIO Frediano <Frediano.Ziglio AT vodafoneomnitel.it>
- To: "Freetds (E-mail)" <freetds AT franklin.metalab.unc.edu>
- Subject: Compile patch
- Date: Mon, 15 Jul 2002 14:55:15 +0200
Compiling current CVS give some warning for not defined function or wrong
conversion.
This small patch fix those warning (using undefined function can be
dangerous, best to avoid them)
Index: include/tds.h.in
===================================================================
RCS file: /cvsroot/freetds/freetds/include/tds.h.in,v
retrieving revision 1.21
diff -u -r1.21 tds.h.in
--- include/tds.h.in 15 Jul 2002 03:29:58 -0000 1.21
+++ include/tds.h.in 15 Jul 2002 12:51:08 -0000
@@ -609,6 +609,8 @@
extern char *tds_get_string(TDSSOCKET *tds, void *dest, int n);
extern TDSRESULTINFO *tds_alloc_results(int num_cols);
extern TDSCOMPUTEINFO *tds_alloc_compute_results(int num_cols);
+extern TDSCONTEXT *tds_alloc_context();
+extern void tds_free_context(TDSCONTEXT *context);
extern TDSSOCKET *tds_alloc_socket(TDSCONTEXT *context, int bufsize);
extern TDSCONFIGINFO *tds_get_config(TDSSOCKET *tds, TDSLOGIN *login,
TDSLOCINFO *locale);
extern TDSLOCINFO *tds_get_locale();
@@ -618,6 +620,7 @@
extern void tds_free_login(TDSLOGIN *login);
extern TDSCONFIGINFO *tds_alloc_config(TDSLOCINFO *locale);
extern TDSLOCINFO *tds_alloc_locale();
+extern void tds_free_locale(TDSLOCINFO *locale);
extern TDSSOCKET *tds_connect(TDSLOGIN *login, TDSCONTEXT *context, void
*parent);
extern TDSINPUTPARAM *tds_add_input_param(TDSDYNAMIC *dyn);
extern void tds_set_packet(TDSLOGIN *tds_login, short packet_size);
Index: src/dblib/dbutil.c
===================================================================
RCS file: /cvsroot/freetds/freetds/src/dblib/dbutil.c,v
retrieving revision 1.6
diff -u -r1.6 dbutil.c
--- src/dblib/dbutil.c 15 Jul 2002 03:29:58 -0000 1.6
+++ src/dblib/dbutil.c 15 Jul 2002 12:51:08 -0000
@@ -39,7 +39,7 @@
* TDS layer didn't what it really was */
int dblib_handle_info_message(void *aStruct, void *bStruct)
{
- TDSCONTEXT *tds_ctx = (TDSSOCKET *) aStruct;
+ TDSCONTEXT *tds_ctx = (TDSCONTEXT *) aStruct;
TDSSOCKET *tds = (TDSSOCKET *) bStruct;
DBPROCESS *dbproc = NULL;
@@ -82,7 +82,7 @@
int dblib_handle_err_message(void *aStruct, void *bStruct)
{
- TDSCONTEXT *tds_ctx = (TDSSOCKET *) aStruct;
+ TDSCONTEXT *tds_ctx = (TDSCONTEXT *) aStruct;
TDSSOCKET *tds = (TDSSOCKET *) bStruct;
DBPROCESS *dbproc = NULL;
freddy77
=================================
"STRICTLY PERSONAL AND CONFIDENTIAL
This message may contain confidential and proprietary material for the sole
use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you are not the intended recipient please contact
the sender and delete all copies.
The contents of this message that do not relate to the official business of
our company shall be understood as neither given nor endorsed by it."
=================================
- Compile patch, ZIGLIO Frediano, 07/15/2002
Archive powered by MHonArc 2.6.24.