From dda275242df974398f7756743b132fa1aec5b164 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 19 Feb 2014 10:56:54 -0600 Subject: [PATCH] Cosmetic updates to comments --- fs/fs_rename.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/fs/fs_rename.c b/fs/fs_rename.c index 157775132c8..6f2d1e4328e 100644 --- a/fs/fs_rename.c +++ b/fs/fs_rename.c @@ -80,7 +80,7 @@ int rename(FAR const char *oldpath, FAR const char *newpath) const char *newrelpath = NULL; int ret; - /* Get an inode for the old relpath */ + /* Get an inode that includes the oldpath */ oldinode = inode_find(oldpath, &oldrelpath); if (!oldinode) @@ -99,7 +99,9 @@ int rename(FAR const char *oldpath, FAR const char *newpath) goto errout_with_oldinode; } - /* Get an inode for the new relpath -- it should like on the same mountpoint */ + /* Get an inode for the new relpath -- it should like on the same + * mountpoint + */ newinode = inode_find(newpath, &newrelpath); if (!newinode) @@ -110,7 +112,7 @@ int rename(FAR const char *oldpath, FAR const char *newpath) goto errout_with_oldinode; } - /* Verify that the two pathes lie on the same mountpt inode */ + /* Verify that the two paths lie on the same mountpoint inode */ if (oldinode != newinode) { @@ -118,7 +120,7 @@ int rename(FAR const char *oldpath, FAR const char *newpath) goto errout_with_newinode; } - /* Perform the rename operation using the relative pathes + /* Perform the rename operation using the relative paths * at the common mountpoint. */