[Groonga-commit] groonga/groonga at 69093e1 [master] Simplify

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Jan 4 13:35:29 JST 2017


Kouhei Sutou	2017-01-04 13:35:29 +0900 (Wed, 04 Jan 2017)

  New Revision: 69093e129fb576ece14e25abee6ccfa607d09f92
  https://github.com/groonga/groonga/commit/69093e129fb576ece14e25abee6ccfa607d09f92

  Message:
    Simplify

  Modified files:
    lib/logger.c

  Modified: lib/logger.c (+3 -4)
===================================================================
--- lib/logger.c    2017-01-03 17:01:56 +0900 (51570cc)
+++ lib/logger.c    2017-01-04 13:35:29 +0900 (979e1b4)
@@ -1,6 +1,6 @@
 /* -*- c-basic-offset: 2 -*- */
 /*
-  Copyright(C) 2009-2015 Brazil
+  Copyright(C) 2009-2017 Brazil
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
@@ -431,7 +431,7 @@ grn_logger_init(void)
 {
   CRITICAL_SECTION_INIT(default_logger_lock);
   if (!current_logger.log) {
-    grn_memcpy(&current_logger, &default_logger, sizeof(grn_logger));
+    current_logger = default_logger;
   }
 }
 
@@ -675,8 +675,7 @@ grn_query_logger_put(grn_ctx *ctx, unsigned int flag, const char *mark,
 void
 grn_query_logger_init(void)
 {
-  grn_memcpy(&current_query_logger,
-             &default_query_logger, sizeof(grn_query_logger));
+  current_query_logger = default_query_logger;
   CRITICAL_SECTION_INIT(default_query_logger_lock);
 }
 
-------------- next part --------------
HTML����������������������������...
Descargar 



More information about the Groonga-commit mailing list
Back to archive index