Navigation Menu

Skip to content

Commit

Permalink
Use ERRNO_ERR() for errno
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 18, 2015
1 parent 74ef2b0 commit 2b1f943
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/io.c
Expand Up @@ -1691,11 +1691,11 @@ 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) {
SERR(path);
ERRNO_ERR(path);
return ctx->rc;
}
if (fstat(fi->fd, &st) == -1) {
SERR(path);
ERRNO_ERR(path);
return ctx->rc;
}
fi->dev = st.st_dev;
Expand Down

0 comments on commit 2b1f943

Please sign in to comment.