aboutsummaryrefslogtreecommitdiff
path: root/nuttx/fs/fs_stat.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-01-04 20:49:47 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-01-04 20:49:47 +0000
commit695341cc6d6b0073900f48d94578ee2d5f0b104d (patch)
treee5ab1ef913b7324c1e05d2a6a7a37171f24e2af5 /nuttx/fs/fs_stat.c
parent157bef0d3dde1c6f29f794654c34d0a8752cfd83 (diff)
downloadpx4-firmware-695341cc6d6b0073900f48d94578ee2d5f0b104d.tar.gz
px4-firmware-695341cc6d6b0073900f48d94578ee2d5f0b104d.tar.bz2
px4-firmware-695341cc6d6b0073900f48d94578ee2d5f0b104d.zip
Fix buffer full test in generic CAN driver (plus fixes to comments)
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4259 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/fs/fs_stat.c')
-rw-r--r--nuttx/fs/fs_stat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/nuttx/fs/fs_stat.c b/nuttx/fs/fs_stat.c
index 85c91bd4e..138d6a2c1 100644
--- a/nuttx/fs/fs_stat.c
+++ b/nuttx/fs/fs_stat.c
@@ -1,8 +1,8 @@
/****************************************************************************
* fs/fs_stat.c
*
- * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
+ * Copyright (C) 2007-2009 , 2012Gregory Nutt. All rights reserved.
+ * Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -187,7 +187,7 @@ int stat(const char *path, FAR struct stat *buf)
if (inode->u.i_mops && inode->u.i_mops->stat)
{
- /* Perform the rewinddir() operation */
+ /* Perform the stat() operation */
ret = inode->u.i_mops->stat(inode, relpath, buf);
}
@@ -215,10 +215,10 @@ int stat(const char *path, FAR struct stat *buf)
/* Failure conditions always set the errno appropriately */
- errout_with_inode:
+errout_with_inode:
inode_release(inode);
- errout:
- *get_errno_ptr() = ret;
+errout:
+ set_errno(ret);
return ERROR;
}