Update of /cvsroot/monetdb/clients/src/odbc/driver
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17458/src/odbc/driver

Modified Files:
        ODBCConvert.c 
Log Message:
Updates to the .spec files to be ever so slightly more compatible with
the Fedora packaging guidelines.

Use %configure instead of ./configure.  This implies removing the
--prefix, --bindir, etc. options.  This also implies that the compiler
will be called with -D_FORTIFY_SOURCE=2 which makes that the compiler
is even stricter than before.  So we do that now as well.

Some fixes to get things compiled with -D_FORTIFY_SOURCE=2.  Mostly,
we need to do something with the result of functions such as fwrite,
fread, ftruncate, system.

Added descriptions to all packages.

Created a MonetDB-testing package.

Enabled the MonetDB-SQL-devel package.

When creating the tar balls, remove extraneous execute bits, and don't
include files that are generated by configure (i.e. files for which
there is a corresponding .in file).


Index: ODBCConvert.c
===================================================================
RCS file: /cvsroot/monetdb/clients/src/odbc/driver/ODBCConvert.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- ODBCConvert.c       20 Feb 2007 10:48:07 -0000      1.3
+++ ODBCConvert.c       5 Sep 2007 17:05:50 -0000       1.4
@@ -685,8 +685,11 @@
                return SQL_ERROR;
        if (*sval == '+' || *sval == '-')
                return SQL_ERROR;
-       (void) strtol(sval, &eptr, 10); /* we parse the actual value again 
later */
-       if (eptr == sval)
+       /* note that the first bit is a bogus comparison (sval does
+          not start with '-', so is not negative) but this keeps the
+          compiler happy */
+       if (strtol(sval, &eptr, 10) < 0 || /* we parse the actual value again 
later */
+           eptr == sval)
                return SQL_ERROR;
        leadingprecision = (int) (eptr - sval);
 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to