[Groonga-commit] groonga/groonga [master] use grn_bool.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 12月 29日 (木) 18:20:48 JST


Kouhei Sutou	2011-12-29 18:20:48 +0900 (Thu, 29 Dec 2011)

  New Revision: 2d686cf375024e32759ae19e8d67cf4c68eb0241

  Log:
    use grn_bool.

  Modified files:
    lib/db.c

  Modified: lib/db.c (+2 -2)
===================================================================
--- lib/db.c    2011-12-29 18:17:54 +0900 (b33a3e1)
+++ lib/db.c    2011-12-29 18:20:48 +0900 (ebfd1c5)
@@ -97,8 +97,8 @@ grn_db_create(grn_ctx *ctx, const char *path, grn_db_create_optarg *optarg)
   GRN_API_ENTER;
   if (!path || strlen(path) <= PATH_MAX - 14) {
     if ((s = GRN_MALLOC(sizeof(grn_db)))) {
-      int use_pat_as_db_keys =  (getenv("GRN_CREATE_DB_USING_PAT") &&
-                                 !strcmp(getenv("GRN_CREATE_DB_USING_PAT"), "yes"));
+      grn_bool use_pat_as_db_keys = (getenv("GRN_CREATE_DB_USING_PAT") &&
+                                     !strcmp(getenv("GRN_CREATE_DB_USING_PAT"), "yes"));
       grn_tiny_array_init(ctx, &s->values, sizeof(db_value),
                           GRN_TINY_ARRAY_CLEAR|
                           GRN_TINY_ARRAY_THREADSAFE|




Groonga-commit メーリングリストの案内
Back to archive index