[Groonga-commit] groonga/groonga at 2240791 [master] GRN_TRUE/GRN_FALSE aren't literal for bool

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jun 5 16:24:02 JST 2017


Kouhei Sutou	2017-06-05 16:24:02 +0900 (Mon, 05 Jun 2017)

  New Revision: 2240791e9379c9ce8eb04d8e2ace8b77ec348220
  https://github.com/groonga/groonga/commit/2240791e9379c9ce8eb04d8e2ace8b77ec348220

  Message:
    GRN_TRUE/GRN_FALSE aren't literal for bool

  Modified files:
    lib/dat.cpp

  Modified: lib/dat.cpp (+3 -3)
===================================================================
--- lib/dat.cpp    2017-06-05 16:21:28 +0900 (18782e9)
+++ lib/dat.cpp    2017-06-05 16:24:02 +0900 (f4b1289)
@@ -1,6 +1,6 @@
 /* -*- c-basic-offset: 2 -*- */
 /*
-  Copyright(C) 2011-2016 Brazil
+  Copyright(C) 2011-2017 Brazil
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
@@ -71,14 +71,14 @@ bool
 grn_dat_remove_file(grn_ctx *ctx, const char *path)
 {
   struct stat stat;
-  bool succeeded = GRN_FALSE;
+  bool succeeded = false;
   if (!::stat(path, &stat)) {
     if (grn_unlink(path) != 0) {
       ERRNO_ERR("failed to remove path: <%s>", path);
     } else {
       GRN_LOG(ctx, GRN_LOG_INFO,
               "removed path on grn_dat_remove_file(): <%s>", path);
-      succeeded = GRN_TRUE;
+      succeeded = true;
     }
   }
   return succeeded;
-------------- next part --------------
HTML����������������������������...
Download 



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