Update of /cvsroot/monetdb/MonetDB4/src/monet
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17870/src/monet

Modified Files:
        monet_parse.mx monet_tbl.mx 
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: monet_parse.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB4/src/monet/monet_parse.mx,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- monet_parse.mx      30 Mar 2007 18:02:28 -0000      1.5
+++ monet_parse.mx      5 Sep 2007 17:06:06 -0000       1.6
@@ -82,6 +82,8 @@
        }
 }
 
+#define ECHO   /* empty -- don't echo anything (we shouldn't get there anyway 
*/
+
 #define RETURN(Y)                                                      \
        do {                                                            \
                ll_lastval = Y;                                         \

Index: monet_tbl.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB4/src/monet/monet_tbl.mx,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- monet_tbl.mx        9 Apr 2007 21:37:25 -0000       1.8
+++ monet_tbl.mx        5 Sep 2007 17:06:06 -0000       1.9
@@ -1404,20 +1404,23 @@
 restart. By keeping the reference count at one we are assured that
 they remain fixed in memory for the duration of the session.
 @c
-static void tbl_rename(Client client, BAT* b, str nme) 
+static void
+tbl_rename(Client client, BAT* b, str nme) 
 {
        /* the batname is prefixed with the client user name to make in easy to 
spot
         * in the BBP dir list. Note that this rename may fail if such a bat 
already
         * exists (very rare and contrived though)
         */
        char buf[256];
+
         strncpy(buf, client->user ? client->user : "monet", 128);
         if (client->stk) {
-            int len = strlen(buf);
-            snprintf(buf+len, 256-len, "_%d", client->stk);     
+               size_t len = strlen(buf);
+
+               snprintf(buf + len, sizeof(buf) - len, "_%d", client->stk);
         }
-        strncat(buf, "_",  256); 
-        strncat(buf, nme,  256); 
+        strncat(buf, "_",  sizeof(buf) - 1);
+        strncat(buf, nme,  sizeof(buf) - 1);
        BBPrename(b->batCacheid, buf);
 }
 


-------------------------------------------------------------------------
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