Changeset: a084543e5280 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a084543e5280
Modified Files:
        gdk/gdk_logger.c
Branch: transaction-replication
Log Message:

Silence compiler
Do not mix declaration and code


diffs (19 lines):

diff --git a/gdk/gdk_logger.c b/gdk/gdk_logger.c
--- a/gdk/gdk_logger.c
+++ b/gdk/gdk_logger.c
@@ -1542,6 +1542,7 @@ logger_new(int debug, char *fn, char *lo
 {
        logger *lg = (struct logger *) GDKmalloc(sizeof(struct logger));
        char filename[BUFSIZ];
+       char shared_log_filename[BUFSIZ];
 
        if (lg == NULL) {
                fprintf(stderr, "!ERROR: logger_new: allocating logger 
structure failed\n");
@@ -1592,7 +1593,6 @@ logger_new(int debug, char *fn, char *lo
 
                /* get last shared logger id from the local log dir,
                 * but first check if the file exists */
-               char shared_log_filename[BUFSIZ];
                snprintf(shared_log_filename, BUFSIZ, "%s%s", lg->local_dir, 
LOGFILE_SHARED);
 
                if (access(shared_log_filename, 0) != -1) {
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to