Kouhei Sutou
null+****@clear*****
Sat Apr 18 16:14:56 JST 2015
Kouhei Sutou 2015-04-18 16:14:56 +0900 (Sat, 18 Apr 2015) New Revision: 1f0ac541b75b3e9e864199528d1df23f810f3079 https://github.com/groonga/groonga/commit/1f0ac541b75b3e9e864199528d1df23f810f3079 Message: Follow API change Modified files: lib/io.c src/groonga.c Modified: lib/io.c (+2 -1) =================================================================== --- lib/io.c 2015-04-18 16:14:19 +0900 (e7052ed) +++ lib/io.c 2015-04-18 16:14:56 +0900 (a78c7f2) @@ -1690,7 +1690,8 @@ inline static grn_rc grn_fileinfo_open(grn_ctx *ctx, fileinfo *fi, const char *path, int flags) { struct stat st; - if ((fi->fd = GRN_OPEN(path, flags, GRN_IO_FILE_CREATE_MODE)) == -1) { + grn_open(fi->fd, path, flags); + if (fi->fd == -1) { ERRNO_ERR(path); return ctx->rc; } Modified: src/groonga.c (+2 -1) =================================================================== --- src/groonga.c 2015-04-18 16:14:19 +0900 (dc5316f) +++ src/groonga.c 2015-04-18 16:14:56 +0900 (b94a76b) @@ -580,7 +580,8 @@ daemonize(void) _exit(EXIT_SUCCESS); } { - int null_fd = GRN_OPEN("/dev/null", O_RDWR, 0); + int null_fd; + grn_open(null_fd, "/dev/null", O_RDWR); if (null_fd != -1) { dup2(null_fd, STDIN_FILENO); dup2(null_fd, STDOUT_FILENO); -------------- next part -------------- HTML����������������������������...다운로드