[Groonga-commit] groonga/groonga at 38eb336 [master] windows: use NULL for empty HANDLE

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Jan 17 15:05:47 JST 2015


Kouhei Sutou	2015-01-17 15:05:47 +0900 (Sat, 17 Jan 2015)

  New Revision: 38eb336bd34bc7b102e90f9af6028f18463d4232
  https://github.com/groonga/groonga/commit/38eb336bd34bc7b102e90f9af6028f18463d4232

  Message:
    windows: use NULL for empty HANDLE

  Modified files:
    lib/io.c

  Modified: lib/io.c (+1 -1)
===================================================================
--- lib/io.c    2015-01-17 15:04:58 +0900 (e546c0b)
+++ lib/io.c    2015-01-17 15:05:47 +0900 (b127502)
@@ -1297,7 +1297,7 @@ grn_mmap(grn_ctx *ctx, HANDLE *fmo, fileinfo *fi, off_t offset, size_t length)
   void *res;
   if (!fi) {
     if (fmo) {
-      *fmo = (HANDLE)0;
+      *fmo = NULL;
     }
     return GRN_GCALLOC(length);
   }
-------------- next part --------------
HTML����������������������������...
Download 



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