[Groonga-commit] groonga/groonga at 16a8f3d [master] conf: use int32_t instead of int

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Jan 14 19:18:36 JST 2016


Kouhei Sutou	2016-01-14 19:18:36 +0900 (Thu, 14 Jan 2016)

  New Revision: 16a8f3d1eb996aba874972df78f957df780b3111
  https://github.com/groonga/groonga/commit/16a8f3d1eb996aba874972df78f957df780b3111

  Message:
    conf: use int32_t instead of int

  Modified files:
    include/groonga/conf.h
    lib/conf.c

  Modified: include/groonga/conf.h (+4 -4)
===================================================================
--- include/groonga/conf.h    2016-01-14 18:45:30 +0900 (c49cc83)
+++ include/groonga/conf.h    2016-01-14 19:18:36 +0900 (62511dc)
@@ -28,13 +28,13 @@ extern "C" {
 #define GRN_CONF_VALUE_SPACE_SIZE (4 * 1024)
 
 GRN_API grn_rc grn_conf_set(grn_ctx *ctx,
-                            const char *key, int key_size,
-                            const char *value, int value_size);
+                            const char *key, int32_t key_size,
+                            const char *value, int32_t value_size);
 GRN_API grn_rc grn_conf_get(grn_ctx *ctx,
-                            const char *key, int key_size,
+                            const char *key, int32_t key_size,
                             const char **value, uint32_t *value_size);
 GRN_API grn_rc grn_conf_delete(grn_ctx *ctx,
-                               const char *key, int key_size);
+                               const char *key, int32_t key_size);
 
 #ifdef __cplusplus
 }

  Modified: lib/conf.c (+3 -3)
===================================================================
--- lib/conf.c    2016-01-14 18:45:30 +0900 (e8432e0)
+++ lib/conf.c    2016-01-14 19:18:36 +0900 (4b0b6bd)
@@ -24,8 +24,8 @@
 
 grn_rc
 grn_conf_set(grn_ctx *ctx,
-             const char *key, int key_size,
-             const char *value, int value_size)
+             const char *key, int32_t key_size,
+             const char *value, int32_t value_size)
 {
   grn_obj *db;
   grn_hash *conf;
@@ -88,7 +88,7 @@ grn_conf_set(grn_ctx *ctx,
 
 grn_rc
 grn_conf_get(grn_ctx *ctx,
-             const char *key, int key_size,
+             const char *key, int32_t key_size,
              const char **value, uint32_t *value_size)
 {
   grn_obj *db;
-------------- next part --------------
HTML����������������������������...
Download 



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