Skip to Content.
Sympa Menu

freetds - Small patch for wrong pointer conversion

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: ZIGLIO Frediano <Frediano.Ziglio AT vodafoneomnitel.it>
  • To: "Freetds (E-mail)" <freetds AT franklin.metalab.unc.edu>
  • Subject: Small patch for wrong pointer conversion
  • Date: Tue, 16 Jul 2002 11:40:34 +0200


Just a simple patch...
Why not removing cast and declaring different message handlers?

Index: src/dblib/dbutil.c
===================================================================
RCS file: /cvsroot/freetds/freetds/src/dblib/dbutil.c,v
retrieving revision 1.7
diff -u -r1.7 dbutil.c
--- src/dblib/dbutil.c 16 Jul 2002 04:01:21 -0000 1.7
+++ src/dblib/dbutil.c 16 Jul 2002 09:37:06 -0000
@@ -82,7 +82,7 @@

int dblib_handle_err_message(void *ctxptr, void *tdsptr, void *msgptr)
{
- TDSCONTEXT *tds_ctx = (TDSSOCKET *) ctxptr;
+ TDSCONTEXT *tds_ctx = (TDSCONTEXT *) ctxptr;
TDSSOCKET *tds = (TDSSOCKET *) tdsptr;
TDSMSGINFO *msg = (TDSMSGINFO *) msgptr;
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."

=================================



  • Small patch for wrong pointer conversion, ZIGLIO Frediano, 07/16/2002

Archive powered by MHonArc 2.6.24.

Top of Page